bedtools: fix clang build

This commit is contained in:
Justin Bedo 2017-03-22 12:00:24 +11:00
parent addffa41b4
commit 56aeb271c9
No known key found for this signature in database
GPG Key ID: 2C18202C56C182BD

View File

@ -12,8 +12,9 @@ stdenv.mkDerivation rec {
};
buildInputs = [ zlib python ];
buildPhase = "make prefix=$out SHELL=${stdenv.shell} -j $NIX_BUILD_CORES";
installPhase = "make prefix=$out SHELL=${stdenv.shell} install";
cc = if stdenv.cc.isClang then "clang++" else "g++";
buildPhase = "make prefix=$out SHELL=${stdenv.shell} CXX=${cc} -j $NIX_BUILD_CORES";
installPhase = "make prefix=$out SHELL=${stdenv.shell} CXX=${cc} install";
meta = with stdenv.lib; {
description = "A powerful toolset for genome arithmetic.";