Skip to content

Commit

Permalink
ophcrack: init at 3.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Tochiaha committed Mar 31, 2024
1 parent 2bffb27 commit 271bd48
Showing 1 changed file with 67 additions and 0 deletions.
67 changes: 67 additions & 0 deletions pkgs/by-name/op/ophcrack/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{ lib
, stdenvNoCC
, libsForQt5
, fetchurl
, fetchpatch
, autoreconfHook
, pkg-config
, openssl
, gcc
}:

stdenvNoCC.mkDerivation rec {
pname = "ophcrack";
version = "3.8.0";

src = fetchurl {
url = "https://sourceforge.net/projects/ophcrack/files/ophcrack/3.8.0/ophcrack-3.8.0.tar.bz2";
hash = "sha256-BIpt9XmDo6WjGsfE7BLfFqpJ5lKilnbZPU75WdUK7uA=";
};

nativeBuildInputs = [
autoreconfHook
libsForQt5.wrapQtAppsHook
];

buildInputs = [
pkg-config
openssl
gcc
libsForQt5.qtcharts
];

patches = [
(fetchpatch {
url = "https://salsa.debian.org/pkg-security-team/ophcrack/-/raw/c60118b40802e1162dcebfe5f881cf973b2334d3/debian/patches/fix_spelling_error.diff";
hash = "sha256-Fc044hTU4Mtdym+HukGAwGzaLm7aVzV9KpvHvFUG2Sc=";
})
(fetchpatch {
url = "https://salsa.debian.org/pkg-security-team/ophcrack/-/raw/e19d993a7dbf131d13128366e2aac270a685befc/debian/patches/qmake_crossbuild.diff";
hash = "sha256-sOKXOBpAYGLacU6IxjRzy3HCnGm4DFowDL2qP+DzG8M=";
})
];

dontWrapQtApps = true;

configureFlags = [
"--with-libssl=yes --enable-gui --enable-debug"
];

buildPhase = ''
make
'';

postInstall = ''
wrapProgram $out/bin/ophcrack \
--prefix PATH : "${libsForQt5.qtbase}/bin"
'';

meta = with lib; {
description = "Password crack based on the faster time-memory trade-off. With MySQL and Cisco PIX Algorithm patches";
homepage = "https://ophcrack.sourceforge.io";
license = with licenses; [ gpl2Plus ];
maintainers = with maintainers; [ tochiaha ];
mainProgram = "ophcrack";
platforms = platforms.all;
};
}

0 comments on commit 271bd48

Please sign in to comment.