3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/os-specific/darwin/apple-source-releases/Csu/default.nix
Dan Peebles a3dcb3051d apple-source-releases: bump many packages to 10.10.5
This also changes the versioning scheme to be in more "human-meaningful"
terms, so instead of the internal release numbers we talk about 10.10.5
or 10.9.5.
2016-01-10 14:53:44 -05:00

30 lines
811 B
Nix

{ stdenv, appleDerivation }:
appleDerivation {
postUnpack = ''
substituteInPlace $sourceRoot/Makefile \
--replace "/usr/lib" "/lib" \
--replace "/usr/local/lib" "/lib" \
--replace "/usr/bin" "" \
--replace "/bin/" "" \
--replace "CC = " "CC = cc #" \
--replace "SDK_DIR = " "SDK_DIR = . #"
'';
# Mac OS didn't support rpaths back before 10.5, and this package intentionally builds stubs targeting versions prior to that
NIX_DONT_SET_RPATH = "1";
NIX_NO_SELF_RPATH = "1";
installPhase = ''
export DSTROOT=$out
make install
'';
meta = with stdenv.lib; {
description = "Apple's common startup stubs for darwin";
maintainers = with maintainers; [ copumpkin ];
platforms = platforms.darwin;
license = licenses.apsl20;
};
}