Get In Touch: Difference between revisions
imported>Ixxie m Fixed section capitalization. |
imported>Fadenb m →Becoming a Nixpkgs Maintainer: syntaxhighlight |
||
Line 21: | Line 21: | ||
Everybody can become a package maintainer by adding to <code>maintainers</code> attribute in the meta section of a package. First add your nick handle (preferable your GitHub username) to [https://github.com/NixOS/nixpkgs/blob/master/lib/maintainers.nix#L3 lib/maintainer.nix] and reference the said handle within the package: | Everybody can become a package maintainer by adding to <code>maintainers</code> attribute in the meta section of a package. First add your nick handle (preferable your GitHub username) to [https://github.com/NixOS/nixpkgs/blob/master/lib/maintainers.nix#L3 lib/maintainer.nix] and reference the said handle within the package: | ||
< | <syntaxhighlight lang="nix">{ stdenv, fetchurl }: | ||
stdenv.mkDerivation rec { | stdenv.mkDerivation rec { | ||
name = | name = "hello-2.10"; | ||
# .... | # .... | ||
meta = with stdenv.lib; { | meta = with stdenv.lib; { | ||
Line 30: | Line 30: | ||
platforms = platforms.all; | platforms = platforms.all; | ||
}; | }; | ||
}</ | }</syntaxhighlight> | ||
There can be multiple maintainers per package. Maintainers will receive emails from [[Hydra|Hydra]] when package builds enters a failed state. They do not have special privileges as everybody can suggest updates and modifications to any package. However they might be consulted by NixOS members for testing and as a domain experts, when somebody else make a change to a package. | There can be multiple maintainers per package. Maintainers will receive emails from [[Hydra|Hydra]] when package builds enters a failed state. They do not have special privileges as everybody can suggest updates and modifications to any package. However they might be consulted by NixOS members for testing and as a domain experts, when somebody else make a change to a package. | ||