1 { lib, stdenv, fetchurl, pkg-config, libsigcxx }:
3 let version = "0.4"; in
5 stdenv.mkDerivation rec {
10 url = "https://launchpad.net/libpar2/trunk/${version}/+download/${pname}-${version}.tar.gz";
11 sha256 = "1m4ncws1h03zq7zyqbaymvjzzbh1d3lc4wb1aksrdf0ync76yv9i";
14 nativeBuildInputs = [ pkg-config ];
15 buildInputs = [ libsigcxx ];
17 patches = [ ./libpar2-0.4-external-verification.patch ];
19 CXXFLAGS = lib.optionalString stdenv.cc.isClang "-std=c++11";
22 homepage = "http://parchive.sourceforge.net/";
23 license = lib.licenses.gpl2Plus;
24 description = "A library for using Parchives (parity archive volume sets)";
25 platforms = lib.platforms.unix;