nixpkgs/pkgs/tools/compression/pbzip2/default.nix
Mitch Tishmack 642ee7a77f pbzip2: g++ -> c++ to fix on darwin (close #11212)
vcunat made it apply unconditionally, as it works OK on Linux at least.
/cc maintainer @viric.
2015-11-24 10:03:22 +01:00

28 lines
708 B
Nix

{ stdenv, fetchurl, bzip2 }:
let major = "1.1";
version = "${major}.9";
in
stdenv.mkDerivation rec {
name = "pbzip2-${version}";
src = fetchurl {
url = "https://launchpad.net/pbzip2/${major}/${version}/+download/${name}.tar.gz";
sha256 = "1i7rql77ac33lz7lzrjyl9b16mqizmdkb8hv295a493f7vh1nhmx";
};
buildInputs = [ bzip2 ];
preBuild = "substituteInPlace Makefile --replace g++ c++";
installFlags = "PREFIX=$out";
meta = with stdenv.lib; {
homepage = http://compression.ca/pbzip2/;
description = "A parallel implementation of bzip2 for multi-core machines";
license = licenses.bsd2;
maintainers = with maintainers; [viric];
platforms = platforms.unix;
};
}