Skip to content

Commit 59f5eb7

Browse files
authored
galene: use finalAttrs & add updateScript (#423121)
2 parents 0b08909 + 23a28c2 commit 59f5eb7

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

pkgs/by-name/ga/galene/package.nix

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@
33
fetchFromGitHub,
44
buildGoModule,
55
nixosTests,
6+
nix-update-script,
67
}:
78

8-
buildGoModule rec {
9+
buildGoModule (finalAttrs: {
910
pname = "galene";
1011
version = "0.96.3";
1112

1213
src = fetchFromGitHub {
1314
owner = "jech";
1415
repo = "galene";
15-
rev = "galene-${version}";
16+
tag = "galene-${finalAttrs.version}";
1617
hash = "sha256-loAiPfwTyPi4BKn4TNgVVde2mO119h443A+HwlLvi4g=";
1718
};
1819

@@ -36,12 +37,15 @@ buildGoModule rec {
3637

3738
passthru = {
3839
tests.vm = nixosTests.galene.basic;
40+
updateScript = nix-update-script {
41+
extraArgs = [ "--version-regex=galene-(.*)" ];
42+
};
3943
};
4044

4145
meta = {
4246
description = "Videoconferencing server that is easy to deploy, written in Go";
4347
homepage = "https://github.com/jech/galene";
44-
changelog = "https://github.com/jech/galene/raw/galene-${version}/CHANGES";
48+
changelog = "https://github.com/jech/galene/raw/${finalAttrs.src.tag}/CHANGES";
4549
license = lib.licenses.mit;
4650
platforms = lib.platforms.linux;
4751
teams = [ lib.teams.ngi ];
@@ -50,4 +54,4 @@ buildGoModule rec {
5054
erdnaxe
5155
];
5256
};
53-
}
57+
})

0 commit comments

Comments
 (0)