Nixpkgs/Create and debug packages: Difference between revisions
imported>Rapenne-s replace nix-env with nix-shell for using nox |
imported>Tobias.bora |
||
| Line 221: | Line 221: | ||
$ set -x # Optional: it prints all commands, can be practical to debug | $ set -x # Optional: it prints all commands, can be practical to debug | ||
$ set +e # Optional: do not quit the shell on simple errors, Ctrl-C,... | $ set +e # Optional: do not quit the shell on simple errors, Ctrl-C,... | ||
$ export NIX_ENFORCE_PURITY=0 # Optional: nix automatically skip absolute files not in /nix/, /tmp or NIX_BUILD_TOP. When building in a nix-shell this may be an issue as the source won't be in the above folders and you may get errors like Fatal error: blabla.h: No such file or directory. https://github.com/NixOS/nixpkgs/issues/204036 | |||
$ genericBuild | $ genericBuild | ||
</syntaxhighlight> | </syntaxhighlight> | ||