typioca: 2.7.0 -> 2.8.0
[NixPkgs.git] / pkgs / os-specific / darwin / CoreSymbolication / default.nix
blobd9a2b378134a239636a5f8fe23df0a1292f326d6
1 { lib, fetchFromGitHub, fetchpatch, stdenv }:
3 stdenv.mkDerivation {
4   pname = "core-symbolication";
5   version = "unstable-2018-06-17";
7   src = fetchFromGitHub {
8     repo = "CoreSymbolication";
9     owner = "matthewbauer";
10     rev = "24c87c23664b3ee05dc7a5a87d647ae476a680e4";
11     hash = "sha256-PzvLq94eNhP0+rLwGMKcMzxuD6MlrNI7iT/eV0obtSE=";
12   };
14   patches = [
15     # C99 compilation fix
16     # https://github.com/matthewbauer/CoreSymbolication/pull/1
17     (fetchpatch {
18       url = "https://github.com/boltzmannrain/CoreSymbolication/commit/1c26cc93f260bda9230a93e91585284e80aa231f.patch";
19       hash = "sha256-d/ieDEnvZ9kVOjBVUdJzGmdvC1AF3Jk4fbwp04Q6l/I=";
20     })
21   ];
23   makeFlags = [ "PREFIX=$(out)" "CC=${stdenv.cc.targetPrefix}cc" ];
25   meta = with lib; {
26     description = "Reverse engineered headers for Apple's CoreSymbolication framework";
27     homepage = "https://github.com/matthewbauer/CoreSymbolication";
28     license = licenses.mit;
29     platforms = platforms.darwin;
30     maintainers = with maintainers; [ matthewbauer ];
31   };