Skip to content

Commit

Permalink
Merge pull request #47096 from obsidiansystems/fix-x509-system
Browse files Browse the repository at this point in the history
haskellPackages.x509-system: Override based on the host, not target platform
  • Loading branch information
Ericson2314 committed Sep 21, 2018
2 parents 7736337 + 45c637d commit 8a41a11
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkgs/development/haskell-modules/configuration-nix.nix
Expand Up @@ -126,9 +126,9 @@ self: super: builtins.intersectAttrs super {
# the system-fileio tests use canonicalizePath, which fails in the sandbox
system-fileio = if pkgs.stdenv.isDarwin then dontCheck super.system-fileio else super.system-fileio;

# Prevents needing to add security_tool as a build tool to all of x509-system's
# dependencies.
x509-system = if pkgs.stdenv.targetPlatform.isDarwin && !pkgs.stdenv.cc.nativeLibc
# Prevents needing to add `security_tool` as a run-time dependency for
# everything using x509-system to give access to the `security` executable.
x509-system = if pkgs.stdenv.hostPlatform.isDarwin && !pkgs.stdenv.cc.nativeLibc
then let inherit (pkgs.darwin) security_tool;
in pkgs.lib.overrideDerivation (addBuildDepend super.x509-system security_tool) (drv: {
postPatch = (drv.postPatch or "") + ''
Expand Down

0 comments on commit 8a41a11

Please sign in to comment.