fork
Configure Feed
Select the types of activity you want to include in your feed.
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 nix-update-script,
7}:
8
9stdenv.mkDerivation (finalAttrs: {
10 pname = "bkcrack";
11 version = "1.7.1";
12
13 src = fetchFromGitHub {
14 owner = "kimci86";
15 repo = "bkcrack";
16 rev = "v${finalAttrs.version}";
17 hash = "sha256-88zAR1XE+C5UNmvY/ph1I1tL2nVGbywqh6zHRGbImXU=";
18 };
19
20 passthru.updateScript = nix-update-script { };
21
22 nativeBuildInputs = [ cmake ];
23
24 cmakeFlags = [
25 "-DBKCRACK_BUILD_TESTING=${if finalAttrs.finalPackage.doCheck then "ON" else "OFF"}"
26 ];
27
28 postInstall = ''
29 mkdir -p $out/bin $out/share/doc/bkcrack $out/share/licenses/bkcrack
30 mv $out/bkcrack $out/bin/
31 mv $out/license.txt $out/share/licenses/bkcrack
32 mv $out/example $out/tools $out/readme.md $out/share/doc/bkcrack
33 '';
34
35 doCheck = true;
36
37 meta = with lib; {
38 description = "Crack legacy zip encryption with Biham and Kocher's known plaintext attack";
39 homepage = "https://github.com/kimci86/bkcrack";
40 license = licenses.zlib;
41 platforms = platforms.unix;
42 maintainers = with maintainers; [ erdnaxe ];
43 mainProgram = "bkcrack";
44 };
45})