nixpkgs/pkgs/tools/compression/pbzip2/default.nix

28 lines
711 B
Nix
Raw Normal View History

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