9ce73e272f
https://hydra.nixos.org/build/241116326/nixlog/1 ``` build flags: SHELL=/nix/store/x1xxsh1gp6y389hyl40a0i74dkxiprl7-bash-5.2-p15/bin/bash PREFIX=\$\(out\) CC=cc cc -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -fblocks -c -o CoreSymbolication.o CoreSymbolication.c In file included from CoreSymbolication.c:1: ./CoreSymbolication.h:393:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] CSSymbolOwnerSetTransientUserData(CSSymbolOwnerRef owner, uint32_t gen); ^ int 1 error generated. ``` Also submitted patch upstream at https://github.com/matthewbauer/CoreSymbolication/pull/1 ZHF: #265948
32 lines
1 KiB
Nix
32 lines
1 KiB
Nix
{ lib, fetchFromGitHub, fetchpatch, stdenv }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "core-symbolication";
|
|
version = "unstable-2018-06-17";
|
|
|
|
src = fetchFromGitHub {
|
|
repo = "CoreSymbolication";
|
|
owner = "matthewbauer";
|
|
rev = "24c87c23664b3ee05dc7a5a87d647ae476a680e4";
|
|
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; {
|
|
description = "Reverse engineered headers for Apple's CoreSymbolication framework";
|
|
homepage = "https://github.com/matthewbauer/CoreSymbolication";
|
|
license = licenses.mit;
|
|
platforms = platforms.darwin;
|
|
maintainers = with maintainers; [ matthewbauer ];
|
|
};
|
|
}
|