2019-11-03 15:00:00 +01:00
|
|
|
{ stdenv, fetchFromGitHub, makeWrapper, nx-libs, xorg, getopt, gnugrep, gawk, ps, mount, iproute }:
|
2019-02-13 19:37:31 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "x11docker";
|
2020-05-21 02:49:18 +02:00
|
|
|
version = "6.6.2";
|
2019-02-13 19:37:31 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mviereck";
|
|
|
|
repo = "x11docker";
|
|
|
|
rev = "v${version}";
|
2020-05-21 02:49:18 +02:00
|
|
|
sha256 = "1skdgr2hipd7yx9c7r7nr3914gm9cm1xj6h3qdsa9f92xxm3aml1";
|
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" \
|
|
|
|
--prefix PATH : "${stdenv.lib.makeBinPath [ getopt gnugrep gawk ps mount iproute 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";
|
2019-02-13 19:37:31 +01:00
|
|
|
license = stdenv.lib.licenses.mit;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ jD91mZM2 ];
|
2019-11-03 15:00:00 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2019-02-13 19:37:31 +01:00
|
|
|
};
|
|
|
|
}
|