From b57c4ba0952ad72a2de30bdf1acd04e96c494e07 Mon Sep 17 00:00:00 2001 From: Danny Milosavljevic Date: Fri, 26 Dec 2025 00:20:19 +0100 Subject: 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 --- nongnu/packages/node.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'nongnu/packages') 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) -- cgit v1.2.3