mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 15:11:35 +00:00
Temporarily fix build of x509-system on Darwin.
Introduces a nasty impurity but what can you do :(
This commit is contained in:
parent
c08716029b
commit
695136db1c
|
@ -144,9 +144,11 @@ self: super: {
|
|||
|
||||
# Prevents needing to add security_tool as a build tool to all of x509-system's
|
||||
# dependencies.
|
||||
x509-system = overrideCabal super.x509-system (drv: {
|
||||
# TODO: use pkgs.darwin.security_tool once we can build it
|
||||
x509-system = let security_tool = "/usr";
|
||||
in overrideCabal super.x509-system (drv: {
|
||||
patchPhase = (drv.patchPhase or "") + pkgs.stdenv.lib.optionalString pkgs.stdenv.isDarwin ''
|
||||
substituteInPlace System/X509/MacOS.hs --replace security ${pkgs.darwin.security_tool}/bin/security
|
||||
substituteInPlace System/X509/MacOS.hs --replace security ${security_tool}/bin/security
|
||||
'';
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue