cd-hit: fix darwin build (#123026)
This commit is contained in:
parent
104af4aafa
commit
2adca7ae14
|
@ -1,4 +1,4 @@
|
|||
{ lib, stdenv, fetchFromGitHub, makeWrapper, zlib, perl, perlPackages }:
|
||||
{ lib, stdenv, fetchFromGitHub, makeWrapper, zlib, perl, perlPackages, openmp }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "4.8.1";
|
||||
|
@ -14,8 +14,12 @@ stdenv.mkDerivation rec {
|
|||
propagatedBuildInputs = [ perl perlPackages.TextNSP perlPackages.PerlMagick ];
|
||||
|
||||
nativeBuildInputs = [ zlib makeWrapper ];
|
||||
buildInputs = lib.optional stdenv.cc.isClang openmp;
|
||||
|
||||
makeFlags = [ "PREFIX=$(out)/bin" ];
|
||||
makeFlags = [
|
||||
"CC=${stdenv.cc.targetPrefix}c++" # remove once https://github.com/weizhongli/cdhit/pull/114 is merged
|
||||
"PREFIX=$(out)/bin"
|
||||
];
|
||||
|
||||
preInstall = "mkdir -p $out/bin";
|
||||
|
||||
|
|
|
@ -28941,7 +28941,9 @@ in
|
|||
|
||||
bppsuite = callPackage ../applications/science/biology/bppsuite { };
|
||||
|
||||
cd-hit = callPackage ../applications/science/biology/cd-hit { };
|
||||
cd-hit = callPackage ../applications/science/biology/cd-hit {
|
||||
inherit (llvmPackages) openmp;
|
||||
};
|
||||
|
||||
cmtk = callPackage ../applications/science/biology/cmtk { };
|
||||
|
||||
|
|
Loading…
Reference in New Issue