mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
qt5.qtbase: fix build on darwin
This commit is contained in:
parent
fb7e042104
commit
17cafcb365
1 changed files with 10 additions and 0 deletions
|
|
@ -20,6 +20,8 @@
|
|||
which,
|
||||
# darwin support
|
||||
xcbuild,
|
||||
# TODO: Clean up on `staging`
|
||||
llvmPackages,
|
||||
|
||||
dbus,
|
||||
fontconfig,
|
||||
|
|
@ -192,6 +194,8 @@ stdenv.mkDerivation (
|
|||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
xcbuild
|
||||
# TODO: Clean up on `staging`
|
||||
llvmPackages.lld
|
||||
];
|
||||
|
||||
}
|
||||
|
|
@ -373,6 +377,12 @@ stdenv.mkDerivation (
|
|||
# if dependency paths contain the string "pq", which can occur in the hash.
|
||||
# To prevent these failures, we need to override PostgreSQL detection.
|
||||
PSQL_LIBS = "-L${libpq}/lib -lpq";
|
||||
}
|
||||
// lib.optionalAttrs stdenv.hostPlatform.isDarwin {
|
||||
# Fix for ld64 hardening issue
|
||||
#
|
||||
# TODO: Clean up on `staging`
|
||||
NIX_CFLAGS_LINK = "-fuse-ld=lld";
|
||||
};
|
||||
|
||||
prefixKey = "-prefix ";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue