Update a package: Difference between revisions

imported>Rapenne-s
m Simply the stat command by removing the associated pipe
Pigs (talk | contribs)
m Fix category formatting
 
(7 intermediate revisions by 6 users not shown)
Line 21: Line 21:
mkdir ~/devel/
mkdir ~/devel/
cd ~/devel/
cd ~/devel/
git clone https://github.com/your_username/nixpkgs.git
git clone https://github.com/your_username/nixpkgs.git \
    --depth=1 # Prevents cloning the entire history, which is multiple gigabytes
cd nixpkgs/
cd nixpkgs/
git remote add upstream https://github.com/NixOS/nixpkgs.git</syntaxhighlight>
git remote add upstream https://github.com/NixOS/nixpkgs.git</syntaxhighlight>
Line 40: Line 41:
== Following the white rabbit ==
== Following the white rabbit ==


* This section does not apply for packages in the directory pkgs/by-name. For them, see the included [https://github.com/NixOS/nixpkgs/blob/master/pkgs/by-name/README.md pkgs/by-name/README.md].
* I will center this tutorial on the nix expression that packages the [http://i3wm.org/ i3 window manager], as this expression is quite simple and it was contributing to this expression that I got to understand this whole workflow I am documenting.
* I will center this tutorial on the nix expression that packages the [http://i3wm.org/ i3 window manager], as this expression is quite simple and it was contributing to this expression that I got to understand this whole workflow I am documenting.
* In <tt>~/devel/nixpkgs/default.nix</tt> there is an ''import'' statement that reads <tt>import ./pkgs/top-level/all-packages.nix</tt>
* In <tt>~/devel/nixpkgs/default.nix</tt> there is an ''import'' statement that reads <tt>import ./pkgs/top-level/all-packages.nix</tt>
Line 489: Line 491:
* [[Create and debug nix packages]]
* [[Create and debug nix packages]]
* [[Generic Algorithm on Doing Packaging]]
* [[Generic Algorithm on Doing Packaging]]
* [[Contributing to Nix documentation]]
* [[Contributing#Contributing to the documentation|Contributing to Nix documentation]]
* [[Nixpkgs/Update Scripts]] - automatic updating of packages


[[:Category:Tutorial]]
[[Category:Tutorial]]
[[Category:Nixpkgs]]
[[Category:Contributing]]