2021-04-05 15:23:46 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, makeWrapper, nx-libs, xorg, getopt, gnugrep, gawk, ps, mount, iproute2 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "x11docker";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "7.1.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mviereck";
|
|
|
|
repo = "x11docker";
|
|
|
|
rev = "v${version}";
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "sha256-eSarw5RG2ckup9pNlZtAyZAN8IPZy94RRfej9ppiLfo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
# Don't install `x11docker-gui`, because requires `kaptain` dependency
|
|
|
|
installPhase = ''
|
|
|
|
install -D x11docker "$out/bin/x11docker";
|
|
|
|
wrapProgram "$out/bin/x11docker" \
|
2021-04-05 15:23:46 +00:00
|
|
|
--prefix PATH : "${lib.makeBinPath [ getopt gnugrep gawk ps mount iproute2 nx-libs xorg.xdpyinfo xorg.xhost xorg.xinit ]}"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Run graphical applications with Docker";
|
|
|
|
homepage = "https://github.com/mviereck/x11docker";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.mit;
|
2021-03-09 03:18:52 +00:00
|
|
|
maintainers = with lib.maintainers; [ ];
|
2021-01-15 22:18:51 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|