mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-18 14:41:18 +00:00
kitty: work around ld64 hardening issue
This commit is contained in:
@@ -45,6 +45,8 @@
|
||||
makeBinaryWrapper,
|
||||
darwin,
|
||||
cairo,
|
||||
# TODO: Clean up on `staging`.
|
||||
llvmPackages,
|
||||
}:
|
||||
|
||||
with python3Packages;
|
||||
@@ -117,6 +119,8 @@ buildPythonApplication rec {
|
||||
imagemagick
|
||||
libicns # For the png2icns tool.
|
||||
darwin.autoSignDarwinBinariesHook
|
||||
# TODO: Clean up on `staging`.
|
||||
llvmPackages.lld
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isLinux [
|
||||
wayland-scanner
|
||||
@@ -153,6 +157,10 @@ buildPythonApplication rec {
|
||||
CGO_ENABLED = 0;
|
||||
GOFLAGS = "-trimpath";
|
||||
GOTOOLCHAIN = "local";
|
||||
}
|
||||
# TODO: Clean up on `staging`.
|
||||
// lib.optionalAttrs stdenv.hostPlatform.isDarwin {
|
||||
NIX_CFLAGS_LINK = "-fuse-ld=lld";
|
||||
};
|
||||
|
||||
configurePhase = ''
|
||||
|
||||
Reference in New Issue
Block a user