Nixpkgs: Difference between revisions
imported>Mic92 |
imported>Maurer Mention that you need to be in the root of the nixpkgs directory to find default.nix, and drop superfluous nixpkgs path spec. |
||
Line 43: | Line 43: | ||
==== Hack Nixpkgs ==== | ==== Hack Nixpkgs ==== | ||
Make any modifications you want to your local copy of the repository, then build the package with: <syntaxhighlight lang="bash">nix-build -A $yourpackage | Make any modifications you want to your local copy of the repository, then build the package from the root of the <code>nixpkgs</code> directory with: <syntaxhighlight lang="bash">nix-build -A $yourpackage</syntaxhighlight> | ||
The output of your build will be located under the <code>result/</code> subdirectory. Try running the freshly built binaries in <code>result/bin</code> and check that everything is OK. | The output of your build will be located under the <code>result/</code> subdirectory. Try running the freshly built binaries in <code>result/bin</code> and check that everything is OK. |