summary refs log tree commit diff
path: root/pkgs/tools/networking/par2cmdline/default.nix
blob: 68f1f76329713b7f80affc66e94a389a5ff9a3ca (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
27
28
{stdenv, fetchzip, autoconf, automake}:

stdenv.mkDerivation rec {
  name    = "par2cmdline-${version}";
  version = "0.6.11";

  src = fetchzip {
    url = "https://github.com/BlackIkeEagle/par2cmdline/archive/v${version}.tar.gz";
    sha256 = "0maywssv468ia7rf8jyq4axwahgli3nfykl7x3zip503psywjj8a";
  };

  buildInputs = [ autoconf automake ];

  preConfigure = "autoreconf";

  meta = {
    homepage = https://github.com/BlackIkeEagle/par2cmdline;
    description = "PAR 2.0 compatible file verification and repair tool";
    longDescription = ''
      par2cmdline is a program for creating and using PAR2 files to detect
      damage in data files and repair them if necessary. It can be used with
      any kind of file.
    '';
    license = stdenv.lib.licenses.gpl2Plus;
    maintainers = [ stdenv.lib.maintainers.muflax ];
    platforms = stdenv.lib.platforms.all;
  };
}