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.
This commit is contained in:
Mitch Tishmack
2015-11-24 10:03:22 +01:00
committed by Vladimír Čunát
parent 662bbb526c
commit 642ee7a77f
+6 -5
View File
@@ -1,4 +1,4 @@
{stdenv, fetchurl, bzip2}: { stdenv, fetchurl, bzip2 }:
let major = "1.1"; let major = "1.1";
version = "${major}.9"; version = "${major}.9";
@@ -12,15 +12,16 @@ stdenv.mkDerivation rec {
}; };
buildInputs = [ bzip2 ]; buildInputs = [ bzip2 ];
installPhase = ''
make install PREFIX=$out preBuild = "substituteInPlace Makefile --replace g++ c++";
'';
installFlags = "PREFIX=$out";
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = http://compression.ca/pbzip2/; homepage = http://compression.ca/pbzip2/;
description = "A parallel implementation of bzip2 for multi-core machines"; description = "A parallel implementation of bzip2 for multi-core machines";
license = licenses.bsd2; license = licenses.bsd2;
maintainers = with maintainers; [viric]; maintainers = with maintainers; [viric];
platforms = platforms.linux; platforms = platforms.unix;
}; };
} }