Unverified Commit 45eddbaf authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

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

parents a21683f2 5528c42f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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;