Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CMCDragonkai/ca5f235a82c9e93457104cbc1c903e42 to your computer and use it in GitHub Desktop.
Save CMCDragonkai/ca5f235a82c9e93457104cbc1c903e42 to your computer and use it in GitHub Desktop.
Nix `checkPhase` calling project scripts #nix

Nix checkPhase calling project scripts

When using checkPhase and calling scripts in your project, you may need to run patchShebangs bin prior.

This is because your scripts don't have their shebangs patched, so they may be trying to call /usr/bin/env bash. And this path does not exist inside the Nix build environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment