blob: 893e9f2b2ebd82b1329ccfafb6c440f3fba14b17 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
{ stdenv, appleDerivation }:
appleDerivation {
postUnpack = ''
substituteInPlace $sourceRoot/Makefile \
--replace "/usr/lib" "/lib" \
--replace "/usr/local/lib" "/lib" \
--replace "/usr/bin" "" \
--replace "/bin/" ""
'';
# 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;
};
}
|