build02/nixpkgs-update: use fetchTarball for updatescript fetcher

this is similar to how the github fetcher works

also update mkFetcher CacheDirectory
This commit is contained in:
zowoq 2024-04-17 14:47:09 +10:00
parent ded8e19b95
commit f372a7f4fd
2 changed files with 2 additions and 2 deletions

View file

@ -126,7 +126,7 @@ let
LogsDirectoryMode = "755";
StateDirectory = "nixpkgs-update";
StateDirectoryMode = "700";
CacheDirectory = "nixpkgs-update/worker";
CacheDirectory = "nixpkgs-update/fetcher";
CacheDirectoryMode = "700";
};

View file

@ -1,5 +1,5 @@
let
pkgs = import /var/cache/nixpkgs-update/worker/nixpkgs { };
pkgs = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/master.tar.gz") { };
in
# code in the following let block was copied from nixos/nixpkgs under
# the MIT License