summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorLev Livnev <lev@liv.nev.org.uk>2019-11-14 15:59:45 +0000
committerBjørn Forsman <bjorn.forsman@gmail.com>2019-11-16 14:44:36 +0100
commitefd3b451e8ced50999a0a0614950f9c35e3654e2 (patch)
treef26e3a89d89d350957ae20bfbb9c8408edf0e86a /pkgs
parent5d1c9cebd65053dcb043a0404b0fe0e97857b6c2 (diff)
downloadnixpkgs-efd3b451e8ced50999a0a0614950f9c35e3654e2.tar
nixpkgs-efd3b451e8ced50999a0a0614950f9c35e3654e2.tar.gz
nixpkgs-efd3b451e8ced50999a0a0614950f9c35e3654e2.tar.bz2
nixpkgs-efd3b451e8ced50999a0a0614950f9c35e3654e2.tar.lz
nixpkgs-efd3b451e8ced50999a0a0614950f9c35e3654e2.tar.xz
nixpkgs-efd3b451e8ced50999a0a0614950f9c35e3654e2.tar.zst
nixpkgs-efd3b451e8ced50999a0a0614950f9c35e3654e2.zip
john: copy rules
copy rules so that they are available to john at runtime
without this, john fails when run with default settings
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/security/john/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/tools/security/john/default.nix b/pkgs/tools/security/john/default.nix
index 4107e9fcf14..fd5659e7f9d 100644
--- a/pkgs/tools/security/john/default.nix
+++ b/pkgs/tools/security/john/default.nix
@@ -47,11 +47,12 @@ stdenv.mkDerivation rec {
   NIX_CFLAGS_COMPILE = [ "-DJOHN_SYSTEMWIDE=1" ];
 
   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 \
       -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/*
   '';