Update a package: Difference between revisions
Note for newer packages under /by-name |
Update clone instructions to save disk space and avoid shallow clone |
||
| (One intermediate revision by one other user not shown) | |||
| Line 22: | Line 22: | ||
cd ~/devel/ | cd ~/devel/ | ||
git clone https://github.com/your_username/nixpkgs.git \ | git clone https://github.com/your_username/nixpkgs.git \ | ||
-- | --filter=blob:none # Prevents downloading the entire history, which saves a couple Gb | ||
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 | ||
git gc --aggressive # nixpkgs is a large repository; this brings down the disk usage by another Gb or so</syntaxhighlight> | |||
* When the clone is not recent or you suspect there have been changes upstream (in official nixpkgs): | * When the clone is not recent or you suspect there have been changes upstream (in official nixpkgs): | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
| Line 494: | Line 495: | ||
* [[Nixpkgs/Update Scripts]] - automatic updating of packages | * [[Nixpkgs/Update Scripts]] - automatic updating of packages | ||
[[ | [[Category:Tutorial]] | ||
[[ | [[Category:Nixpkgs]] | ||
[[ | [[Category:Contributing]] | ||