summary refs log tree commit diff
path: root/pkgs/development/libraries/libunwind/native.nix
blob: 6ce485ecaec0a23c88a592cce1ed3680e622a9fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;
}