Nixpkgs/Contributing: Difference between revisions
imported>Milahu m lint nix |
m Grammar fix |
||
| (7 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
Development in NixOS primarily driven by the work in [https://github.com/nixos/nixpkgs nixpkgs on GitHub]. This repository contains both all packages available in your NixOS channel and all the options you can use for configuring your system with your <code>configuration.nix</code>. To get your text editor to recognize Nix expressions, consider installing a Nix [[Editor Modes for Nix Files]]. | Development in NixOS is primarily driven by the work in [https://github.com/nixos/nixpkgs nixpkgs on GitHub]. This repository contains both all packages available in your NixOS channel and all the options you can use for configuring your system with your <code>configuration.nix</code>. To get your text editor to recognize Nix expressions, consider installing a Nix [[Editor Modes for Nix Files]]. | ||
== Report issues == | == Report issues == | ||
| Line 7: | Line 7: | ||
== Create pull requests == | == Create pull requests == | ||
If you want to see your package being provided by a channel, creating an issue will most likely not enough. It is up to you to create a | If you want to see your package being provided by a channel, creating an issue will most likely not be enough. It is up to you to create a nix package description in Nixpkgs and create a pull request in the Nixpkgs repository. Pull requests are a way to tell a GitHub project that you've created some changes, which maintainers can easily review, comment on, and finally merge into the repository. | ||
See [https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#how-to-create-pull-requests How to create pull requests] in nixpkgs CONTRIBUTING.md. | |||
=== Hack Nixpkgs === | === Hack Nixpkgs === | ||
| Line 34: | Line 21: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
sudo nixos-rebuild switch -I nixpkgs=/path/to/local/nixpkgs | sudo nixos-rebuild switch -I nixpkgs=/path/to/local/nixpkgs | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 100: | Line 74: | ||
* utillinux → util-linux | * utillinux → util-linux | ||
* double_conversion → double-conversion | * double_conversion → double-conversion | ||
===== Make optional ===== | ===== Make optional ===== | ||
Solution | Solution 2: Make it an optional dependency: | ||
<pre> | <pre> | ||
| Line 126: | Line 94: | ||
} | } | ||
</pre> | </pre> | ||
=== Manage your local repository === | === Manage your local repository === | ||
| Line 152: | Line 101: | ||
== Becoming a Nixpkgs maintainer == | == Becoming a Nixpkgs maintainer == | ||
See [https://github.com/NixOS/nixpkgs/tree/master/maintainers maintainers] in nixpkgs | |||
=== Building all of the packages you maintain === | === Building all of the packages you maintain === | ||
| Line 191: | Line 124: | ||
git checkout master #1 | git checkout master #1 | ||
git fetch upstream | git fetch upstream | ||
git | git branch -u upstream/master | ||
</syntaxhighlight> | </syntaxhighlight> | ||
1. make sure you're on the master branch | 1. make sure you're on the master branch | ||
after the above steps you only have to <code>git pull</code> to update the master branch | |||
[https://stackoverflow.com/a/7244456 source] | [https://stackoverflow.com/a/7244456 source] | ||
[[Category:Community]] | |||