diff --git a/pkgs/os-specific/bsd/netbsd/default.nix b/pkgs/os-specific/bsd/netbsd/default.nix index 46bac37f4e82..7f8a623b20d0 100644 --- a/pkgs/os-specific/bsd/netbsd/default.nix +++ b/pkgs/os-specific/bsd/netbsd/default.nix @@ -51,7 +51,7 @@ let AR = "${stdenv'.cc.targetPrefix or ""}ar"; CC = "${stdenv'.cc.targetPrefix or ""}cc"; - CPP = if (stdenv'.cc.isClang or false) then "clang-cpp" else "cpp"; + CPP = "${stdenv'.cc.targetPrefix or ""}cpp"; CXX = "${stdenv'.cc.targetPrefix or ""}c++"; LD = "${stdenv'.cc.targetPrefix or ""}ld"; STRIP = "${stdenv'.cc.targetPrefix or ""}strip";