Update a package: Difference between revisions
imported>Fricklerhandwerk m Fricklerhandwerk moved page Nixpkgs/Update a package to Update a package: Nixpkgs is now a category, no need to prefix the title |
imported>Tomodachi94 Add --depth flag to clone instruction |
||
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> |