cracklib: only use local binaries on native build
This commit is contained in:
parent
d0dbdfea4f
commit
0f41c1582f
1 changed files with 2 additions and 1 deletions
|
@ -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/
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue