gsc: fix darwin build
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl } :
|
||||
{ stdenv, fetchurl, openmp ? null }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "bsc-${version}";
|
||||
@@ -11,6 +11,13 @@ stdenv.mkDerivation rec {
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
buildInputs = stdenv.lib.optional stdenv.isDarwin openmp;
|
||||
|
||||
prePatch = ''
|
||||
substituteInPlace makefile \
|
||||
--replace 'g++' '$(CXX)'
|
||||
'';
|
||||
|
||||
preInstall = ''
|
||||
makeFlagsArray+=("PREFIX=$out")
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user