summary refs log tree commit diff
path: root/pkgs/development/libraries/libunwind/native.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/libunwind/native.nix')
-rw-r--r--pkgs/development/libraries/libunwind/native.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libunwind/native.nix b/pkgs/development/libraries/libunwind/native.nix
new file mode 100644
index 00000000000..6ce485ecaec
--- /dev/null
+++ b/pkgs/development/libraries/libunwind/native.nix
@@ -0,0 +1,17 @@
+{ stdenv }:
+
+assert stdenv.isDarwin;
+
+stdenv.mkDerivation {
+  name = "libunwind-native";
+
+  unpackPhase = ":";
+  dontBuild = true;
+
+  installPhase = ''
+    mkdir -p $out/lib
+    cat /usr/lib/system/libunwind.dylib > $out/lib/libunwind.dylib
+  '';
+
+  meta.platforms = stdenv.lib.platforms.darwin;
+}