x11docker: init at 5.4.1

This commit is contained in:
jD91mZM2
2019-02-15 17:16:42 +01:00
parent 19af7aae3a
commit 5a00711ef8
4 changed files with 85 additions and 31 deletions
+44
View File
@@ -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' {} \;
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
View File
@@ -1,30 +0,0 @@
{ stdenv, fetchurl, autoreconfHook, pkgconfig, libxcomp }:
stdenv.mkDerivation rec {
name = "nxproxy-${version}";
version = "3.5.99.17-1";
src = fetchurl {
sha256 = "18a7cvjnaf50lf1cc5axx9jmi8n9g75d2i5y4s6q9r3phpwyp918";
url = "https://code.x2go.org/releases/source/nx-libs/nx-libs-${version}-lite.tar.gz";
};
buildInputs = [ libxcomp ];
nativeBuildInputs = [ autoreconfHook pkgconfig ];
preAutoreconf = ''
cd nxproxy/
sed -i 's|-L\$(top_srcdir)/../nxcomp/src/.libs ||' src/Makefile.am
'';
makeFlags = [ "exec_prefix=$(out)" ];
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "NX compression proxy";
homepage = http://wiki.x2go.org/doku.php/wiki:libs:nx-libs;
license = licenses.gpl2;
platforms = platforms.linux;
};
}