Merge pull request #268519 from boltzmannrain/coresymbolication_c99_fix

This commit is contained in:
Artturi 2023-11-19 18:42:32 +02:00 committed by GitHub
commit 46e98ccc96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ lib, fetchFromGitHub, stdenv }:
{ lib, fetchFromGitHub, fetchpatch, stdenv }:
stdenv.mkDerivation {
pname = "core-symbolication";
@ -11,6 +11,15 @@ stdenv.mkDerivation {
hash = "sha256-PzvLq94eNhP0+rLwGMKcMzxuD6MlrNI7iT/eV0obtSE=";
};
patches = [
# C99 compilation fix
# https://github.com/matthewbauer/CoreSymbolication/pull/1
(fetchpatch {
url = "https://github.com/boltzmannrain/CoreSymbolication/commit/1c26cc93f260bda9230a93e91585284e80aa231f.patch";
hash = "sha256-d/ieDEnvZ9kVOjBVUdJzGmdvC1AF3Jk4fbwp04Q6l/I=";
})
];
makeFlags = [ "PREFIX=$(out)" "CC=${stdenv.cc.targetPrefix}cc" ];
meta = with lib; {