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,6 +1,6 @@
{
lib,
sources,
fetchFromGitHub,
buildGoModule,
envsubst,
coreutils,
@ -8,8 +8,16 @@
let
envsubstBin = lib.getExe envsubst;
in
buildGoModule {
inherit (sources.crowdsec-firewall-bouncer) pname version src;
buildGoModule (drv: {
pname = "crowdsec-firewall-bouncer";
version = "0.0.34";
src = fetchFromGitHub {
owner = "crowdsecurity";
repo = "cs-firewall-bouncer";
rev = drv.version;
hash = "sha256-lDO9pwPkbI+FDTdXBv03c0p8wbkRUiIDNl1ip3AZo2g=";
};
vendorHash = "sha256-SbpclloBgd9vffC0lBduGRqPOqmzQ0J91/KeDHCh0jo=";
@ -23,4 +31,4 @@ buildGoModule {
substituteInPlace $out/lib/systemd/system/crowdsec-firewall-bouncer.service \
--replace-fail /bin/sleep ${coreutils}/bin/sleep
'';
}
})