summary refs log tree commit diff
path: root/pkgs/development/libraries/cracklib
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2020-03-10 18:55:56 -0400
committerMatthew Bauer <mjbauer95@gmail.com>2020-04-06 16:36:21 -0400
commit0f41c1582f612f1384eb316a39aa943cd6fed767 (patch)
treea7491b392b96fa60e7fa2fd76d84c2478e449d0a /pkgs/development/libraries/cracklib
parentd0dbdfea4f4d3b5444a154f67e0b5215196d0c34 (diff)
cracklib: only use local binaries on native build
Diffstat (limited to 'pkgs/development/libraries/cracklib')
-rw-r--r--pkgs/development/libraries/cracklib/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/libraries/cracklib/default.nix b/pkgs/development/libraries/cracklib/default.nix
index ea3f5e6476bcc..66cab45bf7a6b 100644
--- a/pkgs/development/libraries/cracklib/default.nix
+++ b/pkgs/development/libraries/cracklib/default.nix
@@ -18,10 +18,11 @@ stdenv.mkDerivation rec {
   nativeBuildInputs = lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) buildPackages.cracklib;
   buildInputs = [ zlib gettext ];
 
-  postPatch = ''
+  postPatch = stdenv.lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform) ''
     chmod +x util/cracklib-format
     patchShebangs util
 
+  '' + ''
     ln -vs ${toString wordlists} dicts/
   '';