refactor(update-script): Switch from nvfetcher to nix-update

This commit is contained in:
Tristan Daniël Maat 2025-08-17 23:43:06 +08:00
parent 3fa21d0581
commit b1edd5aab6
Signed by: tlater
GPG key ID: 49670FD774E43268
5 changed files with 29 additions and 83 deletions

View file

@ -1 +1,17 @@
{ sources }: sources.crowdsec-hub.src
{ fetchFromGitHub, stdenvNoCC }:
# Using `mkDerivation` so nix-update can pick up the version
stdenvNoCC.mkDerivation (drv: {
pname = "crowdsec-hub";
version = drv.src.rev;
src = fetchFromGitHub {
owner = "crowdsecurity";
repo = "hub";
rev = "fc59f78180f3edfce76df3e77b001c454f567d3d";
hash = "sha256-Ejx3ta05SMvV/Dj7wy2iF9QYbGoRvxPB3+QuCIoTX4Q=";
};
installPhase = ''
cp -r $src $out
'';
})