summary refs log tree commit diff
path: root/pkgs/tools/security/phrasendrescher
diff options
context:
space:
mode:
authorR. RyanTM <ryantm-bot@ryantm.com>2019-05-05 13:55:11 -0700
committerRenaud <c0bw3b@users.noreply.github.com>2019-05-05 22:55:11 +0200
commitb5e4b3879cd5f0092bfa834d23e43a045e72e2d7 (patch)
treee4b2ae3b2cf65063aac3234c6faf197b9a9fbf6c /pkgs/tools/security/phrasendrescher
parent7a47ebd84c48e00a4a0d1f7add0c23ae78eed237 (diff)
downloadnixpkgs-b5e4b3879cd5f0092bfa834d23e43a045e72e2d7.tar
nixpkgs-b5e4b3879cd5f0092bfa834d23e43a045e72e2d7.tar.gz
nixpkgs-b5e4b3879cd5f0092bfa834d23e43a045e72e2d7.tar.bz2
nixpkgs-b5e4b3879cd5f0092bfa834d23e43a045e72e2d7.tar.lz
nixpkgs-b5e4b3879cd5f0092bfa834d23e43a045e72e2d7.tar.xz
nixpkgs-b5e4b3879cd5f0092bfa834d23e43a045e72e2d7.tar.zst
nixpkgs-b5e4b3879cd5f0092bfa834d23e43a045e72e2d7.zip
phrasendrescher: 1.0 -> 1.2.2c (#46215)
* phrasendrescher: 1.0 -> 1.2.2b

Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
phrasendrescher

* phrasendrescher: 1.2.2b -> 1.2.2c
and refactor
Diffstat (limited to 'pkgs/tools/security/phrasendrescher')
-rw-r--r--pkgs/tools/security/phrasendrescher/default.nix23
1 files changed, 15 insertions, 8 deletions
diff --git a/pkgs/tools/security/phrasendrescher/default.nix b/pkgs/tools/security/phrasendrescher/default.nix
index 294e296ba6e..93dc75c1f32 100644
--- a/pkgs/tools/security/phrasendrescher/default.nix
+++ b/pkgs/tools/security/phrasendrescher/default.nix
@@ -1,19 +1,26 @@
-{ stdenv, fetchurl, openssl }:
+{ stdenv, fetchurl, openssl, libssh2, gpgme }:
 
 stdenv.mkDerivation rec {
-  name = "phrasendrescher-${version}";
-  version = "1.0";
+  pname = "phrasendrescher";
+  version = "1.2.2c";
 
   src = fetchurl {
-    url = "http://leidecker.info/projects/phrasendrescher/${name}.tar.gz";
-    sha256 = "1r0j7ms3i324p6if9cg8i0q900zqfjpvfr8pwj181x8ascysbbf2";
+    url = "http://leidecker.info/projects/${pname}/${pname}-${version}.tar.gz";
+    sha256 = "18vg6h294219v14x5zqm8ddmq5amxlbz7pw81lcmpz8v678kwyph";
   };
 
-  buildInputs = [ openssl ];
+  postPatch = ''
+    substituteInPlace configure \
+      --replace 'SSL_LIB="ssl"' 'SSL_LIB="crypto"'
+  '';
+
+  buildInputs = [ openssl libssh2 gpgme ];
+
+  configureFlags = "--with-plugins";
 
   meta = with stdenv.lib; {
-    description = "Cracking tool that finds passphrases of SSH keys";
-    homepage = http://leidecker.info/projects/phrasendrescher.shtml;
+    description = "A modular and multi processing pass phrase cracking tool";
+    homepage = "http://leidecker.info/projects/phrasendrescher/index.shtml";
     license = licenses.gpl2Plus;
     platforms = platforms.all;
     maintainers = with maintainers; [ bjornfor ];