Unverified Commit 59f5eb72 authored by Cosima Neidahl's avatar Cosima Neidahl Committed by GitHub
Browse files

galene: use finalAttrs & add updateScript (#423121)

parents 0b08909b 23a28c2d
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -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
    ];
  };
}
})