mirror of
https://github.com/ryantm/nixpkgs-update.git
synced 2024-12-17 16:31:47 +03:00
Automatically clone 'nixpkgs'
nixpkgs cache is stored in $HOME/.cache/nixpkgs. Will setup upstream and origin correctly to be used later on with 'hub'.
This commit is contained in:
parent
af7153d3b8
commit
fc02d11a8c
13
ups.sh
13
ups.sh
@ -9,6 +9,19 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
ARGUMENTS=""
|
||||
|
||||
NIXPKGS=$HOME/.cache/nixpkgs
|
||||
if ! [ -d "$NIXPKGS" ]
|
||||
then
|
||||
hub clone nixpkgs $NIXPKGS # requires that user has forked nixpkgs
|
||||
cd $NIXPKGS
|
||||
git remote add upstream https://github.com/NixOS/nixpkgs
|
||||
git fetch upstream
|
||||
git fetch origin staging
|
||||
git fetch upstream staging
|
||||
fi
|
||||
|
||||
cd $NIXPKGS
|
||||
|
||||
export DRY_RUN=true
|
||||
echo "
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user