3a6ba9ea5b
I don't use these tools anymore, so it makes sense I shouldn't have an opinion on PRs that change/update them. I know it's always unfortunate losing a reviewer, but I'm not very active anymore anyway, unfortunately. Apologies. From now on, I'm trying not to add too many packages into nixpkgs, since flakes are available. I guess when I first started using Nix I got overexcited by how easy it was to contribute, so I added things for the sake of adding things (not because I necessarily used them).
49 lines
1.6 KiB
Nix
49 lines
1.6 KiB
Nix
{ lib, stdenv, autoconf, automake, fetchFromGitHub, libgcc, libjpeg_turbo
|
|
, libpng, libtool, libxml2, pkg-config, which, xorg
|
|
, libtirpc
|
|
}:
|
|
stdenv.mkDerivation rec {
|
|
pname = "nx-libs";
|
|
version = "3.5.99.26";
|
|
src = fetchFromGitHub {
|
|
owner = "ArcticaProject";
|
|
repo = "nx-libs";
|
|
rev = version;
|
|
sha256 = "sha256-qVOdD85sBMxKYx1cSLAGKeODsKKAm9UPBmYzPBbBOzQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoconf automake libtool pkg-config 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 libtirpc
|
|
];
|
|
|
|
NIX_CFLAGS_COMPILE = [ "-I${libtirpc.dev}/include/tirpc" ];
|
|
NIX_LDFLAGS = [ "-ltirpc" ];
|
|
|
|
postPatch = ''
|
|
patchShebangs .
|
|
find . -type f -name Makefile -exec sed -i 's|^\(SHELL:=\)/bin/bash$|\1${stdenv.shell}|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 = lib.licenses.gpl2;
|
|
maintainers = with lib.maintainers; [ ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|