2019-06-16 20:59:06 +01:00
|
|
|
{ stdenv, autoconf, automake, fetchFromGitHub, libgcc, libjpeg_turbo,
|
2019-02-13 18:37:31 +00:00
|
|
|
libpng, libtool, libxml2, pkgconfig, which, xorg }:
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "nx-libs";
|
2020-02-01 10:48:35 +00:00
|
|
|
version = "3.5.99.23";
|
2019-02-13 18:37:31 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ArcticaProject";
|
|
|
|
repo = "nx-libs";
|
|
|
|
rev = version;
|
2020-02-01 10:48:35 +00:00
|
|
|
sha256 = "0hcsic9bf8w4ja3xy2nka8hcjvidqzjafn1bwr34l5l47h0kbyqz";
|
2019-02-13 18:37:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 = ''
|
2019-02-16 04:00:11 +00:00
|
|
|
patchShebangs .
|
|
|
|
find . -type f -name Makefile -exec sed -i 's|^\(SHELL:=\)/bin/bash$|\1${stdenv.shell}|g' {} \;
|
2019-02-13 18:37:31 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|