5ca88bfbb9
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
30 lines
981 B
Nix
30 lines
981 B
Nix
{ lib, stdenv, fetchFromGitHub, makeWrapper, nx-libs, xorg, getopt, gnugrep, gawk, ps, mount, iproute2 }:
|
|
stdenv.mkDerivation rec {
|
|
pname = "x11docker";
|
|
version = "7.6.0";
|
|
src = fetchFromGitHub {
|
|
owner = "mviereck";
|
|
repo = "x11docker";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-DehAWrEvoE/zWbfjQmF5Z7HTaQL5WMA/279Ee1Xm47g=";
|
|
};
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
dontBuild = true;
|
|
|
|
# Don't install `x11docker-gui`, because requires `kaptain` dependency
|
|
installPhase = ''
|
|
install -D x11docker "$out/bin/x11docker";
|
|
wrapProgram "$out/bin/x11docker" \
|
|
--prefix PATH : "${lib.makeBinPath [ getopt gnugrep gawk ps mount iproute2 nx-libs xorg.xdpyinfo xorg.xhost xorg.xinit ]}"
|
|
'';
|
|
|
|
meta = {
|
|
description = "Run graphical applications with Docker";
|
|
homepage = "https://github.com/mviereck/x11docker";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
platforms = lib.platforms.linux;
|
|
mainProgram = "x11docker";
|
|
};
|
|
}
|