Skip to content

Commit

Permalink
gsc: fix darwin build
Browse files Browse the repository at this point in the history
(cherry picked from commit 76437e5)
  • Loading branch information
LnL7 committed Sep 8, 2017
1 parent 043737b commit 18f6996
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 8 additions & 1 deletion pkgs/tools/compression/bsc/default.nix
@@ -1,4 +1,4 @@
{ stdenv, fetchurl } :
{ stdenv, fetchurl, openmp ? null }:

stdenv.mkDerivation rec {
name = "bsc-${version}";
Expand All @@ -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")
'';
Expand Down
4 changes: 3 additions & 1 deletion pkgs/top-level/all-packages.nix
Expand Up @@ -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 { };

Expand Down

0 comments on commit 18f6996

Please sign in to comment.