We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent 1196470 commit 9b63bb8Copy full SHA for 9b63bb8
src/nix-build/nix-build.cc
@@ -325,7 +325,7 @@ int main(int argc, char ** argv)
325
if (packages) {
326
instArgs.push_back("--expr");
327
std::ostringstream joined;
328
- joined << "with import <nixpkgs> { }; runCommand \"shell\" { buildInputs = [ ";
+ joined << "with import <nixpkgs> { }; (pkgs.runCommandCC or pkgs.runCommand) \"shell\" { buildInputs = [ ";
329
for (const auto & i : exprs)
330
joined << '(' << i << ") ";
331
joined << "]; } \"\"";
0 commit comments