1{ stdenv, fetchurl, pkgconfig, libsigcxx }:
2
3let version = "0.4"; in
4
5stdenv.mkDerivation rec {
6 name = "libpar2-${version}";
7
8 src = fetchurl {
9 url = "https://launchpad.net/libpar2/trunk/${version}/+download/${name}.tar.gz";
10 sha256 = "1m4ncws1h03zq7zyqbaymvjzzbh1d3lc4wb1aksrdf0ync76yv9i";
11 };
12
13 buildInputs = [ pkgconfig libsigcxx ];
14
15 patches = [ ./libpar2-0.4-external-verification.patch ];
16
17 meta = {
18 homepage = http://parchive.sourceforge.net/;
19 license = stdenv.lib.licenses.gpl2Plus;
20 description = "A library for using Parchives (parity archive volume sets)";
21 };
22}