Marco Rebhan 4d96ec0454
gnustep: move GNUstep packages to by-name
It used newScope before which doesn't work well if at all with overlays.
2025-01-25 21:25:34 +01:00

53 lines
1.2 KiB
Nix

{
lib,
clangStdenv,
fetchurl,
gnustep-libobjc,
which,
}:
clangStdenv.mkDerivation (finalAttrs: {
pname = "gnustep-make";
version = "2.9.2";
src = fetchurl {
url = "ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-make-${finalAttrs.version}.tar.gz";
sha256 = "sha256-9UDfnw4drrPSOwjhSyBLKkbx0KQAXLFxyVMjQTgG5OE=";
};
configureFlags = [
"--with-layout=fhs-system"
"--disable-install-p"
];
preConfigure = ''
configureFlags="$configureFlags --with-config-file=$out/etc/GNUstep/GNUstep.conf"
'';
makeFlags = [
"GNUSTEP_INSTALLATION_DOMAIN=SYSTEM"
];
buildInputs = [ gnustep-libobjc ];
propagatedBuildInputs = [ which ];
patches = [ ./fixup-paths.patch ];
setupHook = ./setup-hook.sh;
meta = {
changelog = "https://github.com/gnustep/tools-make/releases/tag/make-${
builtins.replaceStrings [ "." ] [ "_" ] finalAttrs.version
}";
description = "Build manager for GNUstep";
homepage = "https://gnustep.github.io/";
license = lib.licenses.lgpl2Plus;
maintainers = with lib.maintainers; [
ashalkhakov
dblsaiko
matthewbauer
];
platforms = lib.platforms.unix;
};
})