chore(dx/nix): fix flake fully

This commit is contained in:
FliegendeWurst
2025-09-10 09:30:26 +02:00
parent 97bb38e4f3
commit 834c67aeff
3 changed files with 53 additions and 7 deletions

View File

@@ -0,0 +1,17 @@
--- a/libexec/pnpm/dist/pnpm.cjs 2025-09-15 11:33:34.014095372 +0200
+++ b/libexec/pnpm/dist/pnpm.cjs 2025-09-15 11:37:00.260553326 +0200
@@ -68067,10 +68067,14 @@
return false;
}
function spawn(cmd, args, options, log) {
const cmdWillOutput = willCmdOutput(options && options.stdio);
if (cmdWillOutput) startRunning(log);
+ const stupidPath = options.env["PATH"];
+ const parts = stupidPath.split(":");
+ const partsDedup = new Set(parts);
+ options.env["PATH"] = [...partsDedup].join(":");
const raw = _spawn(cmd, args, options);
const cooked = new EventEmitter();
raw.on("error", function(er) {
if (cmdWillOutput) stopRunning(log);
er.file = cmd;