Keep .git
directory of nixpkgs
This commit is contained in:
parent
1e6bf93191
commit
f3b6f3be23
1 changed files with 2 additions and 3 deletions
|
@ -17,7 +17,6 @@ begin
|
||||||
and git -C "$nixPkgsCache" remote add origin https://github.com/NixOS/nixpkgs.git
|
and git -C "$nixPkgsCache" remote add origin https://github.com/NixOS/nixpkgs.git
|
||||||
and git -C "$nixPkgsCache" fetch --depth=1 origin "$nixPkgsVersion"
|
and git -C "$nixPkgsCache" fetch --depth=1 origin "$nixPkgsVersion"
|
||||||
and git -C "$nixPkgsCache" reset --hard FETCH_HEAD
|
and git -C "$nixPkgsCache" reset --hard FETCH_HEAD
|
||||||
and rm -rf "$nixPkgsCache/.git"
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -29,8 +28,8 @@ begin
|
||||||
downloadNixPkgs
|
downloadNixPkgs
|
||||||
end
|
end
|
||||||
|
|
||||||
sudo mkdir -p "$nixPkgsDir"
|
sudo rm -rf "$nixPkgsDir"
|
||||||
sudo cp -r "$nixPkgsCache"/* "$nixPkgsDir"
|
sudo cp -r "$nixPkgsCache" "$nixPkgsDir"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue