fix: patchShebangs in nonexecutable bin files (#106)
close #106
With NPM 7, hook scripts, which this PR relies on, are not supported anymore, see also https://github.com/nix-community/npmlock2nix/issues/110. However with #151 it will become possible to patch the sources of arbitrary packages, which should cover mostly the same use cases as hook scripts. @milahu Could you try out #151 and see if that can be used for your use cases?
Could you try out #151 and see if that can be used for your use cases?
naah, thats too general
my life is too short to add postPatch = "patchShebangs bin"; to every broken package
chmod +x and patchShebangs should run automatically on all the bin entries of a package
With NPM 7, hook scripts, which this PR relies on, are not supported anymore
i guess you're confusing ...
- lifecycle scripts in package.json: preinstall install postinstall prepublish preprepare prepare postprepare
- hook script files in
node_modules/.hooks, for example node_modules/.hooks/prepare- these are no longer supported in npmv7