2015-06-21 20:29:33 -07:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-11-05 19:33:45 +01:00
|
|
|
name = "gnustep-make-${version}";
|
2015-06-21 20:29:33 -07:00
|
|
|
version = "1.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://ftpmain.gnustep.org/pub/gnustep/core/gnustep-make-2.6.6.tar.gz";
|
|
|
|
sha256 = "07cqr8x17bia9w6clbmiv7ay6r9nplrjz2cyzinv4w7zfpc19vxw";
|
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace GNUmakefile.in \
|
2016-01-02 21:31:22 +01:00
|
|
|
--replace which type
|
2015-06-21 20:29:33 -07:00
|
|
|
|
|
|
|
substituteInPlace FilesystemLayouts/apple \
|
|
|
|
--replace /usr/local ""
|
|
|
|
'';
|
|
|
|
|
2016-01-02 21:31:22 +01:00
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
2015-06-21 20:29:33 -07:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/nix-support
|
|
|
|
cat >$out/nix-support/setup-hook <<EOF
|
|
|
|
. $out/Library/GNUstep/Makefiles/GNUstep.sh
|
|
|
|
EOF
|
|
|
|
'';
|
|
|
|
}
|