at 24.05-pre 25 lines 727 B view raw
1{ lib, stdenv, fetchurl, pkg-config, libsigcxx }: 2 3stdenv.mkDerivation rec { 4 pname = "libpar2"; 5 version = "0.4"; 6 7 src = fetchurl { 8 url = "https://launchpad.net/libpar2/trunk/${version}/+download/${pname}-${version}.tar.gz"; 9 sha256 = "1m4ncws1h03zq7zyqbaymvjzzbh1d3lc4wb1aksrdf0ync76yv9i"; 10 }; 11 12 nativeBuildInputs = [ pkg-config ]; 13 buildInputs = [ libsigcxx ]; 14 15 patches = [ ./libpar2-0.4-external-verification.patch ]; 16 17 CXXFLAGS = lib.optionalString stdenv.cc.isClang "-std=c++11"; 18 19 meta = { 20 homepage = "https://parchive.sourceforge.net/"; 21 license = lib.licenses.gpl2Plus; 22 description = "A library for using Parchives (parity archive volume sets)"; 23 platforms = lib.platforms.unix; 24 }; 25}