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