2021-03-14 16:05:16 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, makeWrapper, nx-libs, xorg, getopt, gnugrep, gawk, ps, mount, iproute2 }:
|
2019-02-13 18:37:31 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "x11docker";
|
2021-08-14 09:20:53 +01:00
|
|
|
version = "6.9.0";
|
2019-02-13 18:37:31 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mviereck";
|
|
|
|
repo = "x11docker";
|
|
|
|
rev = "v${version}";
|
2021-08-14 09:20:53 +01:00
|
|
|
sha256 = "sha256-O+lab3K7J2Zz9t+yB/kYWtBOvQGOQMDFNDUVXzTj/h4=";
|
2019-02-13 18:37:31 +00:00
|
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
2019-11-03 14:00:00 +00:00
|
|
|
# Don't install `x11docker-gui`, because requires `kaptain` dependency
|
2019-02-13 18:37:31 +00:00
|
|
|
installPhase = ''
|
|
|
|
install -D x11docker "$out/bin/x11docker";
|
2019-11-03 14:00:00 +00:00
|
|
|
wrapProgram "$out/bin/x11docker" \
|
2021-03-14 16:05:16 +00:00
|
|
|
--prefix PATH : "${lib.makeBinPath [ getopt gnugrep gawk ps mount iproute2 nx-libs xorg.xdpyinfo xorg.xhost xorg.xinit ]}"
|
2019-02-13 18:37:31 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Run graphical applications with Docker";
|
2020-03-21 05:58:38 +00:00
|
|
|
homepage = "https://github.com/mviereck/x11docker";
|
2021-01-15 05:42:41 +00:00
|
|
|
license = lib.licenses.mit;
|
2021-02-28 16:43:38 +00:00
|
|
|
maintainers = with lib.maintainers; [ ];
|
2021-01-15 05:42:41 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2019-02-13 18:37:31 +00:00
|
|
|
};
|
|
|
|
}
|