diff --git a/pkgs/by-name/ga/galene/package.nix b/pkgs/by-name/ga/galene/package.nix index a593b4e2f588..4462e0b61321 100644 --- a/pkgs/by-name/ga/galene/package.nix +++ b/pkgs/by-name/ga/galene/package.nix @@ -3,16 +3,17 @@ fetchFromGitHub, buildGoModule, nixosTests, + nix-update-script, }: -buildGoModule rec { +buildGoModule (finalAttrs: { pname = "galene"; version = "0.96.3"; src = fetchFromGitHub { owner = "jech"; repo = "galene"; - rev = "galene-${version}"; + tag = "galene-${finalAttrs.version}"; hash = "sha256-loAiPfwTyPi4BKn4TNgVVde2mO119h443A+HwlLvi4g="; }; @@ -36,12 +37,15 @@ buildGoModule rec { passthru = { tests.vm = nixosTests.galene.basic; + updateScript = nix-update-script { + extraArgs = [ "--version-regex=galene-(.*)" ]; + }; }; meta = { description = "Videoconferencing server that is easy to deploy, written in Go"; homepage = "https://github.com/jech/galene"; - changelog = "https://github.com/jech/galene/raw/galene-${version}/CHANGES"; + changelog = "https://github.com/jech/galene/raw/${finalAttrs.src.tag}/CHANGES"; license = lib.licenses.mit; platforms = lib.platforms.linux; teams = [ lib.teams.ngi ]; @@ -50,4 +54,4 @@ buildGoModule rec { erdnaxe ]; }; -} +})