Jump to content

Nixpkgs/Contributing: Difference between revisions

m
Driveby stdenv.lib deprecation cleanup: https://github.com/NixOS/nixpkgs/issues/108938
imported>Fab
m (Move link)
imported>R-burns
m (Driveby stdenv.lib deprecation cleanup: https://github.com/NixOS/nixpkgs/issues/108938)
Line 82: Line 82:
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/maintainers/maintainer-list.nix maintainer-list.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/maintainers/maintainer-list.nix maintainer-list.nix] and reference the said handle within the package:


<syntaxhighlight lang="nix">{ stdenv, fetchurl }:
<syntaxhighlight lang="nix">{ stdenv, lib, fetchurl }:
stdenv.mkDerivation rec {
stdenv.mkDerivation rec {
   name = "hello-2.10";  
   name = "hello-2.10";  
   # ....
   # ....
   meta = with stdenv.lib; {
   meta = with lib; {
     # ...
     # ...
     maintainers = with maintainers; [ eelco your-nick ]; # replace your-nick with your real nick
     maintainers = with maintainers; [ eelco your-nick ]; # replace your-nick with your real nick
Anonymous user