depot/pkgs/development/web/nodejs/bin-sh-node-run-v22.patch
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

14 lines
554 B
Diff

Fixes test/parallel/test-node-run.js subtest.
Note that this techinically depends on an impurity during build, see
also https://github.com/NixOS/nix/issues/6081. Currently stdenv allows
/bin/sh as an impure host dependency on Darwin, so we are guaranteed to
have it to certain degree, although it is very hacky.
--- a/test/fixtures/run-script/node_modules/.bin/positional-args
+++ b/test/fixtures/run-script/node_modules/.bin/positional-args
@@ -1,3 +1,3 @@
-#!/bin/bash
+#!/bin/sh
echo "Arguments: '$@'"
echo "The total number of arguments are: $#"