infra/modules/shared/nixpkgs-clone.bash
zowoq edeaf0e3a5 modules/community-builder: add nixpkgs clone
Co-authored-by: nicoo <nicoo@mur.at>
2024-09-26 01:56:50 +00:00

5 lines
243 B
Bash

CLONE_DIR="/var/lib/nixpkgs.git"
if [ ! -d "$CLONE_DIR" ]; then
git clone --bare https://github.com/NixOS/nixpkgs.git "$CLONE_DIR"
fi
git -C "$CLONE_DIR" -c remote.origin.fetch="+refs/heads/*:refs/remotes/origin/*" -c fetch.prune=true fetch