bkcrack: 1.6.0 -> 1.6.1

This commit is contained in:
Peter Hoeg 2024-01-23 09:55:42 +01:00
parent f5b14da180
commit 98f6d2d5c4

View file

@ -2,33 +2,43 @@
, stdenv , stdenv
, fetchFromGitHub , fetchFromGitHub
, cmake , cmake
, nix-update-script
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "bkcrack"; pname = "bkcrack";
version = "1.6.0"; version = "1.6.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "kimci86"; owner = "kimci86";
repo = pname; repo = "bkcrack";
rev = "v${version}"; rev = "v${finalAttrs.version}";
hash = "sha256-VfPRX9lOPyen8CujiBtTCbD5e7xd9X2OQ1uZ6JWKwtY="; hash = "sha256-x7JK7+DcD2uSWZRTJQPGCcF2mHBlu6FwYUbuYzbvD+s=";
}; };
passthru.updateScript = nix-update-script { };
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
cmakeFlags = [
"-DBKCRACK_BUILD_TESTING=${if finalAttrs.doCheck then "ON" else "OFF"}"
];
postInstall = '' postInstall = ''
mkdir -p $out/bin $out/share/licenses/bkcrack mkdir -p $out/bin $out/share/doc/bkcrack $out/share/licenses/bkcrack
mv $out/bkcrack $out/bin/ mv $out/bkcrack $out/bin/
mv $out/license.txt $out/share/licenses/bkcrack mv $out/license.txt $out/share/licenses/bkcrack
rm -r $out/example $out/tools $out/readme.md mv $out/example $out/tools $out/readme.md $out/share/doc/bkcrack
''; '';
doCheck = true;
meta = with lib; { meta = with lib; {
description = "Crack legacy zip encryption with Biham and Kocher's known plaintext attack"; description = "Crack legacy zip encryption with Biham and Kocher's known plaintext attack";
homepage = "https://github.com/kimci86/bkcrack"; homepage = "https://github.com/kimci86/bkcrack";
license = licenses.zlib; license = licenses.zlib;
platforms = platforms.unix; platforms = platforms.unix;
maintainers = with maintainers; [ erdnaxe ]; maintainers = with maintainers; [ erdnaxe ];
mainProgram = "bkcrack";
}; };
} })