john: rolling-2404 ->1.9.0-Jumbo-1-unstable-2026-04-13; add update script (#420793)

This commit is contained in:
Felix Bargfeldt
2026-05-20 20:28:42 +00:00
committed by GitHub
+8 -8
View File
@@ -2,6 +2,7 @@
lib,
stdenv,
fetchFromGitHub,
unstableGitUpdater,
openssl,
nss,
nspr,
@@ -25,13 +26,13 @@
stdenv.mkDerivation {
pname = "john";
version = "rolling-2604";
version = "1.9.0-Jumbo-1-unstable-2026-04-13";
src = fetchFromGitHub {
owner = "openwall";
repo = "john";
rev = "f514ece8ec4ae5e38ad75aaa322eac86d73dcd76";
hash = "sha256-Fzt9KnMFBTdPpQMSlXe/zG9LMylAZnC6uzU4yJ6HSUk=";
hash = "sha256-zO1/KUJe3LvYCGlwVpNg5uDwPRD0ql/7anErb7tywC0=";
};
patches = lib.optionals withOpenCL [
@@ -40,9 +41,6 @@ stdenv.mkDerivation {
})
];
# Fix build with gcc 15
env.NIX_CFLAGS_COMPILE = "-std=gnu17";
postPatch = ''
sed -ri -e '
s!^(#define\s+CFG_[A-Z]+_NAME\s+).*/!\1"'"$out"'/etc/john/!
@@ -109,9 +107,7 @@ stdenv.mkDerivation {
]);
# TODO: Get dependencies for radius2john.pl and lion2john-alt.pl
# gcc -DAC_BUILT -Wall vncpcap2john.o memdbg.o -g -lpcap -fopenmp -o ../run/vncpcap2john
# gcc: error: memdbg.o: No such file or directory
enableParallelBuilding = false;
enableParallelBuilding = true;
postInstall = ''
mkdir -p "$out/bin" "$out/etc/john" "$out/share/john" "$out/share/doc/john" "$out/share/john/rules" "$out/share/john/opencl" "$out/${perlPackages.perl.libPrefix}"
@@ -133,6 +129,10 @@ stdenv.mkDerivation {
done
'';
passthru.updateScript = unstableGitUpdater {
tagFormat = "[0-9].*";
};
meta = {
description = "John the Ripper password cracker";
license = [