Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x11docker: init at 5.4.1 #55723

Merged
merged 2 commits into from
Feb 16, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions pkgs/applications/virtualization/x11docker/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{ stdenv, fetchFromGitHub, makeWrapper, nx-libs, xorg }:
stdenv.mkDerivation rec {
name = "x11docker-${version}";
version = "5.4.1";
src = fetchFromGitHub {
owner = "mviereck";
repo = "x11docker";
rev = "v${version}";
sha256 = "0fcdr8i3crf4cina41h030q2jf5zvafll97iff129dl3sb27jnvi";
};
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
Ma27 marked this conversation as resolved.
Show resolved Hide resolved
'';

meta = {
description = "Run graphical applications with Docker";
homepage = https://github.com/mviereck/x11docker;
license = stdenv.lib.licenses.mit;
maintainers = with stdenv.lib.maintainers; [ jD91mZM2 ];
};
}
44 changes: 44 additions & 0 deletions pkgs/tools/X11/nx-libs/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{ stdenv, autoconf, automake, bash, fetchFromGitHub, libgcc, libjpeg_turbo,
libpng, libtool, libxml2, pkgconfig, which, xorg }:
stdenv.mkDerivation rec {
name = "nx-libs-${version}";
version = "3.5.99.18";
src = fetchFromGitHub {
owner = "ArcticaProject";
repo = "nx-libs";
rev = version;
sha256 = "07559zk9flzfnyr2ngcdr3nzccga4bl30wghalhrvpgpyljivdyv";
};

nativeBuildInputs = [ autoconf automake libtool pkgconfig which
xorg.gccmakedep xorg.imake ];
buildInputs = [ libgcc libjpeg_turbo libpng libxml2 xorg.fontutil
xorg.libXcomposite xorg.libXdamage xorg.libXdmcp xorg.libXext xorg.libXfont2
xorg.libXinerama xorg.libXpm xorg.libXrandr xorg.libXtst xorg.pixman
xorg.xkbcomp xorg.xkeyboardconfig ];

enableParallelBuilding = true;

postPatch = ''
find . -type f -executable -exec sed -i 's|^#!/bin/bash$|#!${bash}/bin/bash|g' {} \;
Ma27 marked this conversation as resolved.
Show resolved Hide resolved
find . -type f -name Makefile -exec sed -i 's|^\(SHELL:=\)/bin/bash$|\1${bash}/bin/bash|g' {} \;
ln -s libNX_X11.so.6.3.0
'';

PREFIX=""; # Don't install to $out/usr/local
installPhase = ''
make DESTDIR="$out" install
# See:
# - https://salsa.debian.org/debian-remote-team/nx-libs/blob/bcc152100617dc59156015a36603a15db530a64f/debian/rules#L66-72
# - https://github.com/ArcticaProject/nx-libs/issues/652
patchelf --remove-needed "libX11.so.6" $out/bin/nxagent
'';

meta = {
description = "NX X server based on Xnest";
homepage = https://github.com/ArcticaProject/nx-libs;
license = stdenv.lib.licenses.gpl2;
maintainers = with stdenv.lib.maintainers; [ jD91mZM2 ];
platforms = stdenv.lib.platforms.linux;
};
}
30 changes: 0 additions & 30 deletions pkgs/tools/admin/nxproxy/default.nix

This file was deleted.

10 changes: 9 additions & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1568,6 +1568,8 @@ in

nwipe = callPackage ../tools/security/nwipe { };

nx-libs = callPackage ../tools/X11/nx-libs { };

nyx = callPackage ../tools/networking/nyx { };

onboard = callPackage ../applications/misc/onboard { };
Expand Down Expand Up @@ -4517,7 +4519,11 @@ in

nylon = callPackage ../tools/networking/nylon { };

nxproxy = callPackage ../tools/admin/nxproxy { };
nxproxy = throw ''
Ma27 marked this conversation as resolved.
Show resolved Hide resolved
nxproxy has been replaced by nx-libs which builds both nxagent and nxproxy.
This is because the nx-libs upstream repository can not build nxagent
without also building nxproxy. See nixpkgs#55723
'';

nzbget = callPackage ../tools/networking/nzbget { };

Expand Down Expand Up @@ -23137,6 +23143,8 @@ in

x11idle = callPackage ../tools/misc/x11idle {};

x11docker = callPackage ../applications/virtualization/x11docker { };

x2x = callPackage ../tools/X11/x2x { };

xboxdrv = callPackage ../misc/drivers/xboxdrv { };
Expand Down