diff --git a/pkgs/by-name/sc/scion/package.nix b/pkgs/by-name/sc/scion/package.nix index 6fd522c04f8b..cad28b77aa4f 100644 --- a/pkgs/by-name/sc/scion/package.nix +++ b/pkgs/by-name/sc/scion/package.nix @@ -2,21 +2,18 @@ lib, buildGoModule, fetchFromGitHub, + nix-update-script, nixosTests, }: -let - version = "0.12.0"; -in - -buildGoModule { +buildGoModule (finalAttrs: { pname = "scion"; - inherit version; + version = "0.12.0"; src = fetchFromGitHub { owner = "scionproto"; repo = "scion"; - rev = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-J51GIQQhS623wFUU5dI/TwT2rkDH69518lpdCLZ/iM0="; }; @@ -43,18 +40,22 @@ buildGoModule { tags = [ "sqlite_mattn" ]; - passthru.tests = { - inherit (nixosTests) scion-freestanding-deployment; + passthru = { + tests = { + inherit (nixosTests) scion-freestanding-deployment; + }; + updateScript = nix-update-script { }; }; - meta = with lib; { + meta = { description = "Future Internet architecture utilizing path-aware networking"; homepage = "https://scion-architecture.net/"; - platforms = platforms.unix; - license = licenses.asl20; - maintainers = with maintainers; [ + platforms = lib.platforms.unix; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ sarcasticadmin matthewcroughan ]; + teams = with lib.teams; [ ngi ]; }; -} +})