about summary refs log tree commit diff
path: root/pkgs/os-specific/darwin
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2019-01-06 22:13:11 -0600
committerMatthew Bauer <mjbauer95@gmail.com>2019-01-06 22:13:11 -0600
commit2bbec30c2e8a639da4a93038e002dff5d3a421c7 (patch)
tree43906e84f5e4b6ac92b748a2e925d41bbdacfd19 /pkgs/os-specific/darwin
parent09ff7707ae0b275f18e151cc8bd70448bafa6f46 (diff)
downloadnixlib-2bbec30c2e8a639da4a93038e002dff5d3a421c7.tar
nixlib-2bbec30c2e8a639da4a93038e002dff5d3a421c7.tar.gz
nixlib-2bbec30c2e8a639da4a93038e002dff5d3a421c7.tar.bz2
nixlib-2bbec30c2e8a639da4a93038e002dff5d3a421c7.tar.lz
nixlib-2bbec30c2e8a639da4a93038e002dff5d3a421c7.tar.xz
nixlib-2bbec30c2e8a639da4a93038e002dff5d3a421c7.tar.zst
nixlib-2bbec30c2e8a639da4a93038e002dff5d3a421c7.zip
darwin.diskdev_cmds: fix build with dsymutil
xcbuild doesn’t handle dsymutil correctly. fuser.pl does not contain
debug symbols, but xcbuild doesn’t handle this like xcodebuild does.
So, just disable the debug information. We probably should do this in
more places using xcbuild, but it requires some arbitrary patching.
Diffstat (limited to 'pkgs/os-specific/darwin')
-rw-r--r--pkgs/os-specific/darwin/apple-source-releases/diskdev_cmds/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/os-specific/darwin/apple-source-releases/diskdev_cmds/default.nix b/pkgs/os-specific/darwin/apple-source-releases/diskdev_cmds/default.nix
index 0f46e50de3a0..08c7a883502d 100644
--- a/pkgs/os-specific/darwin/apple-source-releases/diskdev_cmds/default.nix
+++ b/pkgs/os-specific/darwin/apple-source-releases/diskdev_cmds/default.nix
@@ -18,14 +18,16 @@ appleDerivation {
     cp xnu-*/bsd/i386/disklabel.h i386
     cp -r xnu-*/bsd/sys System
     cp -r Libc-*/uuid System
+    substituteInPlace diskdev_cmds.xcodeproj/project.pbxproj \
+      --replace 'DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";' ""
   '';
   installPhase = ''
     install -D Products/Release/libdisk.a $out/lib/libdisk.a
     rm Products/Release/libdisk.a
     for f in Products/Release/*; do
       if [ -f $f ]; then
-        install -D $file $out/bin/$(basename $f)
-      done
+        install -D $f $out/bin/$(basename $f)
+      fi
     done
   '';