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