2019-02-13 18:37:31 +00:00
|
|
|
{ stdenv, fetchFromGitHub, makeWrapper, nx-libs, xorg }:
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "x11docker";
|
2019-11-03 11:36:33 +00:00
|
|
|
version = "6.3.0";
|
2019-02-13 18:37:31 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mviereck";
|
|
|
|
repo = "x11docker";
|
|
|
|
rev = "v${version}";
|
2019-11-03 11:36:33 +00:00
|
|
|
sha256 = "0x2sx41y3ylzg511x52k3wh8mfbzp4ialpas6sn4ccagqxh2hc4y";
|
2019-02-13 18:37:31 +00:00
|
|
|
};
|
|
|
|
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";
|
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Run graphical applications with Docker";
|
|
|
|
homepage = https://github.com/mviereck/x11docker;
|
|
|
|
license = stdenv.lib.licenses.mit;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ jD91mZM2 ];
|
|
|
|
};
|
|
|
|
}
|