Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 26 lines 742 B view raw
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 nativeBuildInputs = [ pkgconfig ]; 14 buildInputs = [ libsigcxx ]; 15 16 patches = [ ./libpar2-0.4-external-verification.patch ]; 17 18 CXXFLAGS = stdenv.lib.optionalString stdenv.cc.isClang "-std=c++11"; 19 20 meta = { 21 homepage = http://parchive.sourceforge.net/; 22 license = stdenv.lib.licenses.gpl2Plus; 23 description = "A library for using Parchives (parity archive volume sets)"; 24 platforms = stdenv.lib.platforms.unix; 25 }; 26}