mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 22:50:49 +00:00
john: ship internal perl modules
This commit is contained in:
parent
240db8476a
commit
44a8c33eba
|
@ -48,20 +48,21 @@ stdenv.mkDerivation rec {
|
|||
enableParallelBuilding = false;
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p "$out/bin" "$out/etc/john" "$out/share/john" "$out/share/doc/john" "$out/share/john/rules"
|
||||
mkdir -p "$out/bin" "$out/etc/john" "$out/share/john" "$out/share/doc/john" "$out/share/john/rules" "$out/${perlPackages.perl.libPrefix}"
|
||||
find -L ../run -mindepth 1 -maxdepth 1 -type f -executable \
|
||||
-exec cp -d {} "$out/bin" \;
|
||||
cp -vt "$out/etc/john" ../run/*.conf
|
||||
cp -vt "$out/share/john" ../run/*.chr ../run/password.lst
|
||||
cp -vt "$out/share/john/rules" ../run/rules/*.rule
|
||||
cp -vrt "$out/share/doc/john" ../doc/*
|
||||
cp -vt "$out/${perlPackages.perl.libPrefix}" ../run/lib/*
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
wrapPythonPrograms
|
||||
|
||||
for i in $out/bin/*.pl; do
|
||||
wrapProgram "$i" --prefix PERL5LIB : $PERL5LIB
|
||||
wrapProgram "$i" --prefix PERL5LIB : "$PERL5LIB:$out/${perlPackages.perl.libPrefix}"
|
||||
done
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue