stop copying everything into the store

This commit is contained in:
Joel Taylor 2014-09-03 18:46:47 -07:00
parent afa1db198b
commit 25b395bc8d

View file

@ -6,19 +6,9 @@ stdenv.mkDerivation {
unpackPhase = ":";
dontBuild = true;
# TODO: figure out if these are different in Mavericks + older
installPhase = ''
mkdir -p $out/lib
cat ${/usr/lib/system/libunwind.dylib} > $out/lib/libunwind.dylib
/usr/bin/install_name_tool \
-change /usr/lib/system/libunwind.dylib ${/usr/lib/system/libunwind.dylib} \
-change /usr/lib/system/libsystem_malloc.dylib ${/usr/lib/system/libsystem_malloc.dylib} \
-change /usr/lib/system/libsystem_pthread.dylib ${/usr/lib/system/libsystem_pthread.dylib} \
-change /usr/lib/system/libsystem_platform.dylib ${/usr/lib/system/libsystem_platform.dylib} \
-change /usr/lib/system/libsystem_c.dylib ${/usr/lib/system/libsystem_c.dylib} \
-change /usr/lib/system/libdyld.dylib ${/usr/lib/system/libdyld.dylib} \
-change /usr/lib/system/libkeymgr.dylib ${/usr/lib/system/libkeymgr.dylib} \
$out/lib/libunwind.dylib
'';
meta.platforms = stdenv.lib.platforms.darwin;