mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 19:45:54 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
33 lines
1 KiB
Nix
33 lines
1 KiB
Nix
{ stdenv, fetchFromGitHub, makeWrapper, nx-libs, xorg }:
|
|
stdenv.mkDerivation rec {
|
|
pname = "x11docker";
|
|
version = "6.0.0";
|
|
src = fetchFromGitHub {
|
|
owner = "mviereck";
|
|
repo = "x11docker";
|
|
rev = "v${version}";
|
|
sha256 = "1sfdxlh50hv8j3dj5bphihqdyf8s7ixm6ckrmvqgr2y3gak1y840";
|
|
};
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
buildInputs = [ nx-libs xorg.xhost xorg.xinit ];
|
|
|
|
dontBuild = true;
|
|
|
|
PATH_PREFIX = "${nx-libs}/bin:${xorg.xdpyinfo}/bin:${xorg.xhost}/bin:${xorg.xinit}/bin";
|
|
|
|
installPhase = ''
|
|
install -D x11docker "$out/bin/x11docker";
|
|
#install -D x11docker-gui "$out/bin/x11docker-gui";
|
|
wrapProgram "$out/bin/x11docker" --prefix PATH : "${PATH_PREFIX}"
|
|
#wrapProgram "$out/bin/x11docker-gui" --prefix PATH : "${PATH_PREFIX}"
|
|
# GUI disabled because of missing `kaptain` dependency
|
|
'';
|
|
|
|
meta = {
|
|
description = "Run graphical applications with Docker";
|
|
homepage = https://github.com/mviereck/x11docker;
|
|
license = stdenv.lib.licenses.mit;
|
|
maintainers = with stdenv.lib.maintainers; [ jD91mZM2 ];
|
|
};
|
|
}
|