claude-code: fix hardcoded /bin/bash shebangs (#478569)

This commit is contained in:
Aleksana
2026-01-12 05:14:22 +00:00
committed by GitHub
+5
View File
@@ -22,6 +22,11 @@ buildNpmPackage (finalAttrs: {
postPatch = ''
cp ${./package-lock.json} package-lock.json
# Replace hardcoded `/bin/bash` with `/usr/bin/env bash` for Nix compatibility
# https://github.com/anthropics/claude-code/issues/15195
substituteInPlace cli.js \
--replace-warn '#!/bin/bash' '#!/usr/bin/env bash'
'';
dontNpmBuild = true;