Nixpkgs/Create and debug packages: Difference between revisions

imported>Hypnosis2839
Both source code packages and binary packages: Remove refences to nix3 CLI, fix instructions and tone
imported>Cpick
Remove `source $stdenv/setup` since `nix-shell` runs it automatically and redundant runs can duplicate hooks
Line 216: Line 216:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
$ export out=~/tmpdev/bc-build/out
$ export out=~/tmpdev/bc-build/out
$ source $stdenv/setup
$ 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,...