x11docker: add missing dependencies
This commit is contained in:
parent
a40b03c608
commit
8a1569d1c5
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, makeWrapper, nx-libs, xorg }:
|
||||
{ stdenv, fetchFromGitHub, makeWrapper, nx-libs, xorg, getopt, gnugrep, gawk, ps, mount, iproute }:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "x11docker";
|
||||
version = "6.3.0";
|
||||
@ -9,18 +9,14 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0x2sx41y3ylzg511x52k3wh8mfbzp4ialpas6sn4ccagqxh2hc4y";
|
||||
};
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = [ nx-libs xorg.xhost xorg.xinit ];
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
PATH_PREFIX = "${nx-libs}/bin:${xorg.xdpyinfo}/bin:${xorg.xhost}/bin:${xorg.xinit}/bin";
|
||||
|
||||
# Don't install `x11docker-gui`, because requires `kaptain` dependency
|
||||
installPhase = ''
|
||||
install -D x11docker "$out/bin/x11docker";
|
||||
#install -D x11docker-gui "$out/bin/x11docker-gui";
|
||||
wrapProgram "$out/bin/x11docker" --prefix PATH : "${PATH_PREFIX}"
|
||||
#wrapProgram "$out/bin/x11docker-gui" --prefix PATH : "${PATH_PREFIX}"
|
||||
# GUI disabled because of missing `kaptain` dependency
|
||||
wrapProgram "$out/bin/x11docker" \
|
||||
--prefix PATH : "${stdenv.lib.makeBinPath [ getopt gnugrep gawk ps mount iproute nx-libs xorg.xdpyinfo xorg.xhost xorg.xinit ]}"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
@ -28,5 +24,6 @@ stdenv.mkDerivation rec {
|
||||
homepage = https://github.com/mviereck/x11docker;
|
||||
license = stdenv.lib.licenses.mit;
|
||||
maintainers = with stdenv.lib.maintainers; [ jD91mZM2 ];
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user