summary refs log tree commit diff
path: root/pkgs/tools/security/john/default.nix
diff options
context:
space:
mode:
authorNicolas Berbiche <nicolas@normie.dev>2022-04-25 19:52:13 -0400
committerNicolas Berbiche <nicolas@normie.dev>2022-05-02 17:20:23 -0400
commit733730eff86f0df80aeddaafe729e562d26c1b1b (patch)
tree64e2a8363813d21de92f680ad4971cf0395d7fa8 /pkgs/tools/security/john/default.nix
parent8b0e73e70cda02d67119b53e00ce6832b00172f2 (diff)
john: update source to GitHub and homepage url
Diffstat (limited to 'pkgs/tools/security/john/default.nix')
-rw-r--r--pkgs/tools/security/john/default.nix14
1 files changed, 8 insertions, 6 deletions
diff --git a/pkgs/tools/security/john/default.nix b/pkgs/tools/security/john/default.nix
index bac76aabc1355..9a3c03d6d2bc3 100644
--- a/pkgs/tools/security/john/default.nix
+++ b/pkgs/tools/security/john/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, fetchurl, openssl, nss, nspr, libkrb5, gmp, zlib, libpcap, re2
+{ lib, stdenv, fetchFromGitHub, openssl, nss, nspr, libkrb5, gmp, zlib, libpcap, re2
 , gcc, python3Packages, perl, perlPackages, makeWrapper, fetchpatch
 }:
 
@@ -8,9 +8,11 @@ stdenv.mkDerivation rec {
   pname = "john";
   version = "1.9.0-jumbo-1";
 
-  src = fetchurl {
-    url = "http://www.openwall.com/john/k/${pname}-${version}.tar.xz";
-    sha256 = "0fvz3v41hnaiv1ggpxanfykyfjq79cwp9qcqqn63vic357w27lgm";
+  src = fetchFromGitHub {
+    owner = "openwall";
+    repo = pname;
+    rev = "1.9.0-Jumbo-1";
+    sha256 = "sha256-O1iPh5QTMjZ78sKvGbvSpaHFbBuVc1z49UKTbMa24Rs=";
   };
 
   patches = [
@@ -77,8 +79,8 @@ stdenv.mkDerivation rec {
 
   meta = {
     description = "John the Ripper password cracker";
-    license = licenses.gpl2;
-    homepage = "https://github.com/magnumripper/JohnTheRipper/";
+    license = licenses.gpl2Plus;
+    homepage = "https://github.com/openwall/john/";
     maintainers = with maintainers; [ offline matthewbauer ];
     platforms = platforms.unix;
   };