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 +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
|
||||
'';
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue