nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 buildGoModule,
5 nixosTests,
6 nix-update-script,
7}:
8
9buildGoModule (finalAttrs: {
10 pname = "galene";
11 version = "0.96.3";
12
13 src = fetchFromGitHub {
14 owner = "jech";
15 repo = "galene";
16 tag = "galene-${finalAttrs.version}";
17 hash = "sha256-loAiPfwTyPi4BKn4TNgVVde2mO119h443A+HwlLvi4g=";
18 };
19
20 vendorHash = "sha256-LDLKjD4qYn/Aae6GUX6gZ57+MUfKc058H+YHM0bNZV0=";
21
22 ldflags = [
23 "-s"
24 "-w"
25 ];
26 preCheck = "export TZ=UTC";
27
28 outputs = [
29 "out"
30 "static"
31 ];
32
33 postInstall = ''
34 mkdir $static
35 cp -r ./static $static
36 '';
37
38 passthru = {
39 tests.vm = nixosTests.galene.basic;
40 updateScript = nix-update-script {
41 extraArgs = [ "--version-regex=galene-(.*)" ];
42 };
43 };
44
45 meta = {
46 description = "Videoconferencing server that is easy to deploy, written in Go";
47 homepage = "https://github.com/jech/galene";
48 changelog = "https://github.com/jech/galene/raw/${finalAttrs.src.tag}/CHANGES";
49 license = lib.licenses.mit;
50 platforms = lib.platforms.linux;
51 teams = [ lib.teams.ngi ];
52 maintainers = with lib.maintainers; [
53 rgrunbla
54 erdnaxe
55 ];
56 };
57})