Nixpkgs/Create and debug packages: Difference between revisions
imported>Nh2 Explain how to best invoke individual phase, see https://logs.nix.samueldr.com/nixos/2019-07-21#2408818; |
imported>Tobias.bora No edit summary |
||
| Line 179: | Line 179: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
$ export out=~/tmpdev/bc-build/out | $ export out=~/tmpdev/bc-build/out | ||
$ set -x | $ set -x # Optional: it prints all commands, can be practical to debug | ||
$ source $stdenv/setup # Important to ensure the `PATH` (and other variables) are the one specified in your derivation and not from the system | |||
$ set +e # Quite practical if you don't want to quit the shell on errors/Ctrl+C ($stdenv/setup does `set -eu`) | |||
$ genericBuild | $ genericBuild | ||
</syntaxhighlight> | </syntaxhighlight> | ||