diff --git a/pkgs/tools/misc/starfetch/default.nix b/pkgs/tools/misc/starfetch/default.nix index b8f28625b3aa..d8d07df2d6e8 100755 --- a/pkgs/tools/misc/starfetch/default.nix +++ b/pkgs/tools/misc/starfetch/default.nix @@ -13,6 +13,8 @@ stdenv.mkDerivation rec { postPatch = '' substituteInPlace src/starfetch.cpp --replace /usr/local/ $out/ + '' + lib.optionalString stdenv.cc.isClang '' + substituteInPlace makefile --replace g++ clang++ ''; installPhase = ''