mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
74c784a79c
In 724e833ea2
, I was a little too aggressive in enabling these flags.
Many don’t work in gcc, and we should probably avoid settings them
widely. This makes those flags optional on isclang
29 lines
823 B
Nix
29 lines
823 B
Nix
{ stdenv, fetchurl, bzip2 }:
|
|
|
|
let major = "1.1";
|
|
version = "${major}.13";
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
name = "pbzip2-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "https://launchpad.net/pbzip2/${major}/${version}/+download/${name}.tar.gz";
|
|
sha256 = "1rnvgcdixjzbrmcr1nv9b6ccrjfrhryaj7jwz28yxxv6lam3xlcg";
|
|
};
|
|
|
|
buildInputs = [ bzip2 ];
|
|
|
|
preBuild = "substituteInPlace Makefile --replace g++ c++";
|
|
|
|
installFlags = "PREFIX=$(out)";
|
|
|
|
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang "-Wno-error=reserved-user-defined-literal";
|
|
|
|
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;
|
|
};
|
|
}
|