diff options
| author | Danny Milosavljevic <dannym@friendly-machines.com> | 2025-12-26 00:20:19 +0100 |
|---|---|---|
| committer | John Kehayias <john.kehayias@protonmail.com> | 2026-01-29 17:54:45 -0500 |
| commit | b57c4ba0952ad72a2de30bdf1acd04e96c494e07 (patch) | |
| tree | 3e042b153a1a0bfa7f45fc91f204d47decbd8ae7 | |
| parent | a949bafe6f968b7a42645fe3ac7b63c84b32138e (diff) | |
nongnu: yarn: Make it work inside containers.
* nongnu/packages/node.scm (yarn)[arguments]<#:phases>{patch-shebang-in-cli}:
New phase.
Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
| -rw-r--r-- | nongnu/packages/node.scm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/nongnu/packages/node.scm b/nongnu/packages/node.scm index 876e65b..76f2ab0 100644 --- a/nongnu/packages/node.scm +++ b/nongnu/packages/node.scm @@ -40,7 +40,13 @@ (lambda _ (delete-file (string-append #$output "/bin/yarn.cmd")) (delete-file (string-append #$output "/bin/yarnpkg.cmd")))) - (add-after 'delete-powershell-entrypoints 'wrap-entrypoints + (add-after 'delete-powershell-entrypoints 'patch-shebang-in-cli + (lambda _ + (substitute* (string-append #$output "/lib/cli.js") + (("#!/bin/sh") + (string-append "#!" #$(this-package-input "bash-minimal") + "/bin/sh"))))) + (add-after 'patch-shebang-in-cli 'wrap-entrypoints (lambda _ (for-each (lambda (entrypoint) |
