nixpkgs/pkgs/applications/virtualization/x11docker/default.nix

30 lines
973 B
Nix
Raw Normal View History

2021-03-14 17:05:16 +01:00
{ lib, stdenv, fetchFromGitHub, makeWrapper, nx-libs, xorg, getopt, gnugrep, gawk, ps, mount, iproute2 }:
2019-02-13 19:37:31 +01:00
stdenv.mkDerivation rec {
pname = "x11docker";
2021-10-28 06:37:52 +02:00
version = "6.10.0";
2019-02-13 19:37:31 +01:00
src = fetchFromGitHub {
owner = "mviereck";
repo = "x11docker";
rev = "v${version}";
2021-10-28 06:37:52 +02:00
sha256 = "sha256-cPCtxfLzg1RDh3vKFfxAkcCMytu0mDsGp9CLJQmXATA=";
2019-02-13 19:37:31 +01:00
};
nativeBuildInputs = [ makeWrapper ];
dontBuild = true;
2019-11-03 15:00:00 +01:00
# Don't install `x11docker-gui`, because requires `kaptain` dependency
2019-02-13 19:37:31 +01:00
installPhase = ''
install -D x11docker "$out/bin/x11docker";
2019-11-03 15:00:00 +01:00
wrapProgram "$out/bin/x11docker" \
2021-03-14 17:05:16 +01:00
--prefix PATH : "${lib.makeBinPath [ getopt gnugrep gawk ps mount iproute2 nx-libs xorg.xdpyinfo xorg.xhost xorg.xinit ]}"
2019-02-13 19:37:31 +01:00
'';
meta = {
description = "Run graphical applications with Docker";
2020-03-21 06:58:38 +01:00
homepage = "https://github.com/mviereck/x11docker";
2021-01-15 06:42:41 +01:00
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ];
2021-01-15 06:42:41 +01:00
platforms = lib.platforms.linux;
2019-02-13 19:37:31 +01:00
};
}