1 { lib, stdenv, fetchFromGitHub, makeWrapper, nx-libs, xorg, getopt, gnugrep, gawk, ps, mount, iproute2 }:
2 stdenv.mkDerivation rec {
5 src = fetchFromGitHub {
9 sha256 = "sha256-DehAWrEvoE/zWbfjQmF5Z7HTaQL5WMA/279Ee1Xm47g=";
11 nativeBuildInputs = [ makeWrapper ];
15 # Don't install `x11docker-gui`, because requires `kaptain` dependency
17 install -D x11docker "$out/bin/x11docker";
18 wrapProgram "$out/bin/x11docker" \
19 --prefix PATH : "${lib.makeBinPath [ getopt gnugrep gawk ps mount iproute2 nx-libs xorg.xdpyinfo xorg.xhost xorg.xinit ]}"
23 description = "Run graphical applications with Docker";
24 homepage = "https://github.com/mviereck/x11docker";
25 license = lib.licenses.mit;
27 platforms = lib.platforms.linux;
28 mainProgram = "x11docker";