3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #146462 from flurie/fix-ccextractor-darwin

ccextractor: fix build on x86_64-darwin
This commit is contained in:
Bernardo Meurer 2021-11-18 00:11:24 -08:00 committed by GitHub
commit 60494245cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,7 +23,12 @@ stdenv.mkDerivation rec {
sha256 = "sha256-usVAKBkdd8uz9cD5eLd0hnwGonOJLscRdc+iWDlNXVc=";
};
sourceRoot = "source/src";
postPatch = lib.optionalString stdenv.isDarwin ''
substituteInPlace src/CMakeLists.txt \
--replace 'add_definitions(-DGPAC_CONFIG_LINUX)' 'add_definitions(-DGPAC_CONFIG_DARWIN)'
'';
cmakeDir = "../src";
nativeBuildInputs = [ pkg-config cmake makeWrapper ];