john: copy rules
copy rules so that they are available to john at runtime without this, john fails when run with default settings
This commit is contained in:
parent
5d1c9cebd6
commit
efd3b451e8
@ -47,11 +47,12 @@ stdenv.mkDerivation rec {
|
|||||||
NIX_CFLAGS_COMPILE = [ "-DJOHN_SYSTEMWIDE=1" ];
|
NIX_CFLAGS_COMPILE = [ "-DJOHN_SYSTEMWIDE=1" ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p "$out/bin" "$out/etc/john" "$out/share/john" "$out/share/doc/john"
|
mkdir -p "$out/bin" "$out/etc/john" "$out/share/john" "$out/share/doc/john" "$out/share/john/rules"
|
||||||
find -L ../run -mindepth 1 -maxdepth 1 -type f -executable \
|
find -L ../run -mindepth 1 -maxdepth 1 -type f -executable \
|
||||||
-exec cp -d {} "$out/bin" \;
|
-exec cp -d {} "$out/bin" \;
|
||||||
cp -vt "$out/etc/john" ../run/*.conf
|
cp -vt "$out/etc/john" ../run/*.conf
|
||||||
cp -vt "$out/share/john" ../run/*.chr ../run/password.lst
|
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 -vrt "$out/share/doc/john" ../doc/*
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user