mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
gsc: fix darwin build
This commit is contained in:
parent
8bad0a7f23
commit
76437e5e5a
@ -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")
|
||||
'';
|
||||
|
@ -1296,7 +1296,9 @@ with pkgs;
|
||||
|
||||
atool = callPackage ../tools/archivers/atool { };
|
||||
|
||||
bsc = callPackage ../tools/compression/bsc { };
|
||||
bsc = callPackage ../tools/compression/bsc {
|
||||
inherit (llvmPackages) openmp;
|
||||
};
|
||||
|
||||
bzip2 = callPackage ../tools/compression/bzip2 { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user