fluffychat: 1.22.1 -> 1.23.0 (#364091)
[NixPkgs.git] / pkgs / by-name / po / popura / package.nix
blobb28cee329d4932088fc415d6673915515dd5c931
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5 }:
7 buildGoModule rec {
8   pname = "popura";
9   version = "0.4.6";
11   src = fetchFromGitHub {
12     owner = "${pname}-network";
13     repo = pname;
14     rev = "v${version}";
15     hash = "sha256-iCu6/vD4vgn7aGdwK+OB8ib/QwUwoFuxDUs7vqbTZQc=";
16   };
18   vendorHash = "sha256-9lQC35yt1S2uch3qgwNfa/1FHy+Qi1D5Jo7DWNMgU9w=";
20   ldflags =
21     let
22       pkgSrc = "github.com/yggdrasil-network/yggdrasil-go/src/version";
23     in
24     [
25       "-s"
26       "-w"
27       "-X=${pkgSrc}.buildName=yggdrasil"
28       "-X=${pkgSrc}.buildVersion=${version}"
29     ];
31   meta = with lib; {
32     description = "Alternative Yggdrasil network client";
33     homepage = "https://github.com/popura-network/popura";
34     license = licenses.lgpl3Only;
35     maintainers = with maintainers; [ urandom ];
36     mainProgram = "yggdrasil";
37   };