Jump to content

Nixpkgs/Contributing: Difference between revisions

no edit summary
imported>Artturin
(move contributing to its own subpage)
 
imported>Artturin
No edit summary
Line 99: Line 99:
nix-build maintainers/scripts/build.nix --argstr maintainer your-nick
nix-build maintainers/scripts/build.nix --argstr maintainer your-nick
</syntaxhighlight>
</syntaxhighlight>
== Maintain your nixpkgs fork ==
=== Update master ===
Add nixpkgs as a remote called upstream:
<syntaxhighlight lang="sh">
git remote add upstream https://github.com/NixOS/nixpkgs.git
</syntaxhighlight>
You only have to do it once.
<syntaxhighlight lang="sh">
git checkout master        #1
git fetch upstream
git rebase upstream/master
</syntaxhighlight>
1. make sure you're on the master branch
[https://stackoverflow.com/a/7244456 source]
Anonymous user