diff --git a/pkgs/applications/science/biology/bedtools/default.nix b/pkgs/applications/science/biology/bedtools/default.nix index cd5c980b0016..d6e00659c1a9 100644 --- a/pkgs/applications/science/biology/bedtools/default.nix +++ b/pkgs/applications/science/biology/bedtools/default.nix @@ -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.";