2022-12-02 08:20:57 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bkcrack";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "1.6.0";
|
2022-12-02 08:20:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kimci86";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-VfPRX9lOPyen8CujiBtTCbD5e7xd9X2OQ1uZ6JWKwtY=";
|
2022-12-02 08:20:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/bin $out/share/licenses/bkcrack
|
|
|
|
mv $out/bkcrack $out/bin/
|
|
|
|
mv $out/license.txt $out/share/licenses/bkcrack
|
|
|
|
rm -r $out/example $out/tools $out/readme.md
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Crack legacy zip encryption with Biham and Kocher's known plaintext attack";
|
|
|
|
homepage = "https://github.com/kimci86/bkcrack";
|
|
|
|
license = licenses.zlib;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ erdnaxe ];
|
|
|
|
};
|
|
|
|
}
|