summary refs log tree commit diff
path: root/pkgs/development/libraries/libgcrypt
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2018-07-29 16:48:24 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2018-08-02 15:01:58 -0400
commit34da7e2ce2ca92bdeb73d8257e2ca145a0fc45a5 (patch)
treec8745f7e51296fe44c6a04927c1c60b040bbab84 /pkgs/development/libraries/libgcrypt
parent89a89ddfb3665561a3410420634ada773dfea691 (diff)
downloadnixpkgs-34da7e2ce2ca92bdeb73d8257e2ca145a0fc45a5.tar
nixpkgs-34da7e2ce2ca92bdeb73d8257e2ca145a0fc45a5.tar.gz
nixpkgs-34da7e2ce2ca92bdeb73d8257e2ca145a0fc45a5.tar.bz2
nixpkgs-34da7e2ce2ca92bdeb73d8257e2ca145a0fc45a5.tar.lz
nixpkgs-34da7e2ce2ca92bdeb73d8257e2ca145a0fc45a5.tar.xz
nixpkgs-34da7e2ce2ca92bdeb73d8257e2ca145a0fc45a5.tar.zst
nixpkgs-34da7e2ce2ca92bdeb73d8257e2ca145a0fc45a5.zip
treewide: Remove stdenv.isCross
I *want* cross-specific overrides to be verbose, so I rather not have
this shorthand. This makes the syntactic overhead more proportional to
the maintainence cost. Hopefully this pushes people towards fewer
conditionals and more abstractions.
Diffstat (limited to 'pkgs/development/libraries/libgcrypt')
-rw-r--r--pkgs/development/libraries/libgcrypt/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libgcrypt/default.nix b/pkgs/development/libraries/libgcrypt/default.nix
index 638dec302b7..d8708114c8e 100644
--- a/pkgs/development/libraries/libgcrypt/default.nix
+++ b/pkgs/development/libraries/libgcrypt/default.nix
@@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
     ++ stdenv.lib.optional stdenv.isDarwin gettext
     ++ stdenv.lib.optional enableCapabilities libcap;
 
-  preConfigure = stdenv.lib.optionalString stdenv.isCross ''
+  preConfigure = stdenv.lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
     # This is intentional: gpg-error-config is a shell script that will work during the build
     mkdir -p "$NIX_BUILD_TOP"/bin
     ln -s ${libgpgerror.dev}/bin/gpg-error-config "$NIX_BUILD_TOP/bin"