refactor(update-script): Switch from nvfetcher to nix-update
This commit is contained in:
parent
3fa21d0581
commit
b1edd5aab6
5 changed files with 29 additions and 83 deletions
|
@ -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
|
||||
'';
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue