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

31 lines
841 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, bzip2 }:
2014-11-02 00:03:25 +01:00
let major = "1.1";
2016-04-12 14:07:56 +02:00
version = "${major}.13";
in
2014-11-02 00:03:25 +01:00
stdenv.mkDerivation rec {
2019-08-13 23:52:01 +02:00
pname = "pbzip2";
inherit version;
src = fetchurl {
2019-08-13 23:52:01 +02:00
url = "https://launchpad.net/pbzip2/${major}/${version}/+download/${pname}-${version}.tar.gz";
2016-04-12 14:07:56 +02:00
sha256 = "1rnvgcdixjzbrmcr1nv9b6ccrjfrhryaj7jwz28yxxv6lam3xlcg";
};
buildInputs = [ bzip2 ];
preBuild = "substituteInPlace Makefile --replace g++ c++";
2019-11-05 02:10:31 +01:00
installFlags = [ "PREFIX=$(out)" ];
2021-01-15 10:19:50 +01:00
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=reserved-user-defined-literal";
meta = with 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;
};
}