root: fix build on aarch64-darwin
This commit is contained in:
parent
5d5c6ded1a
commit
d474e39f7d
1 changed files with 3 additions and 1 deletions
|
@ -127,6 +127,8 @@ stdenv.mkDerivation rec {
|
||||||
# Eliminate impure reference to /System/Library/PrivateFrameworks
|
# Eliminate impure reference to /System/Library/PrivateFrameworks
|
||||||
substituteInPlace core/CMakeLists.txt \
|
substituteInPlace core/CMakeLists.txt \
|
||||||
--replace "-F/System/Library/PrivateFrameworks" ""
|
--replace "-F/System/Library/PrivateFrameworks" ""
|
||||||
|
'' + lib.optionalString (stdenv.isDarwin && lib.versionAtLeast stdenv.hostPlatform.darwinMinVersion "11") ''
|
||||||
|
MACOSX_DEPLOYMENT_TARGET=10.16
|
||||||
'';
|
'';
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
|
@ -202,6 +204,6 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
# See https://github.com/NixOS/nixpkgs/pull/192581#issuecomment-1256860426
|
# See https://github.com/NixOS/nixpkgs/pull/192581#issuecomment-1256860426
|
||||||
# for some context on issues on aarch64.
|
# for some context on issues on aarch64.
|
||||||
broken = stdenv.isAarch64;
|
broken = stdenv.isAarch64 && stdenv.isLinux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue