summary refs log tree commit diff
path: root/pkgs/tools/security/fcrackzip/default.nix
blob: d923e81ae8261ff8b7c222b4f6c6b30be0e2185c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{stdenv, fetchurl}:

stdenv.mkDerivation rec {
  pname = "fcrackzip";
  version = "1.0";
  src = fetchurl {
    url = "http://oldhome.schmorp.de/marc/data/${pname}-${version}.tar.gz";
    sha256 = "0l1qsk949vnz18k4vjf3ppq8p497966x4c7f2yx18x8pk35whn2a";
  };

  # 'fcrackzip --use-unzip' cannot deal with file names containing a single quote
  # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=430387
  patches = [ ./fcrackzip_forkexec.patch ];

  # Do not clash with unizp/zipinfo
  postInstall = "mv $out/bin/zipinfo $out/bin/fcrackzip-zipinfo";

  meta = with stdenv.lib; {
    description = "zip password cracker, similar to fzc, zipcrack and others";
    homepage = http://oldhome.schmorp.de/marc/fcrackzip.html;
    license = licenses.gpl2;
    maintainers = with maintainers; [ nico202 ];
    platforms = with platforms; unix;
  };
}