ophcrack: fix build

This commit is contained in:
Xiangyan Sun
2026-05-03 12:56:42 -07:00
parent db985dfa6e
commit 61feedfa7d
+2 -7
View File
@@ -33,9 +33,9 @@ stdenv.mkDerivation (finalAttrs: {
nativeBuildInputs = [ pkg-config ] ++ lib.optional enableGui libsForQt5.wrapQtAppsHook;
buildInputs = [
openssl
expat
]
++ (if enableGui then [ libsForQt5.qtcharts ] else [ expat ])
++ lib.optional stdenv.hostPlatform.isDarwin expat;
++ lib.optional enableGui libsForQt5.qtcharts;
configureFlags = [
"--with-libssl"
@@ -50,11 +50,6 @@ stdenv.mkDerivation (finalAttrs: {
[ "--disable-gui" ]
);
installPhase = lib.optional stdenv.hostPlatform.isDarwin ''
mkdir -p $out/bin
cp -R src/ophcrack $out/bin
'';
meta = {
description = "Free Windows password cracker based on rainbow tables";
homepage = "https://ophcrack.sourceforge.io";