Nixpkgs/Create and debug packages: Difference between revisions

imported>Benediktbroich
Add the more modern nixpkgs-review as alternative to nox, add "good practices" Formatting with alejandra, add "good practices" tests with nixpkgs-hammering (Some things i picked up during my first pr)
imported>Mic92
nuke nox (no one uses this anymore)
Line 376: Line 376:
== nix channels ==
== nix channels ==
nix channels can be used in parallel with your new local repositories, see its [[install/remove software#nix-channels| nix-channel-documentation]]
nix channels can be used in parallel with your new local repositories, see its [[install/remove software#nix-channels| nix-channel-documentation]]
== Testing Package Updates with Nox ==
If you are updating a package's version, you can use [https://github.com/madjar/nox nox] to make sure all packages that depend on the updated package still compile correctly.
First make sure it is available in your shell:
<syntaxhighlight lang="bash">
nix-shell -p nox
</syntaxhighlight>
You can run nox against uncommited changes to a nixpkgs repository:
<syntaxhighlight lang="bash">
cd ~/.nix-defexpr
nox-review wip
</syntaxhighlight>
If you have already commited your changes and created a pull request, you can use the pr command:
<syntaxhighlight lang="bash">
nox-review pr 5341
</syntaxhighlight>


== Testing Package Updates with nixpkgs-review ==
== Testing Package Updates with nixpkgs-review ==