evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / po / popura / package.nix
blobc7e5174452adc34347d5679a89d5709e463f5825
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 }:
6 buildGoModule rec {
7   pname = "popura";
8   version = "0.4.6";
10   src = fetchFromGitHub {
11     owner = "${pname}-network";
12     repo = pname;
13     rev = "v${version}";
14     hash = "sha256-iCu6/vD4vgn7aGdwK+OB8ib/QwUwoFuxDUs7vqbTZQc=";
15   };
17   vendorHash = "sha256-9lQC35yt1S2uch3qgwNfa/1FHy+Qi1D5Jo7DWNMgU9w=";
19   ldflags = let pkgSrc = "github.com/yggdrasil-network/yggdrasil-go/src/version"; in [
20     "-s"
21     "-w"
22     "-X=${pkgSrc}.buildName=yggdrasil"
23     "-X=${pkgSrc}.buildVersion=${version}"
24    ];
26   meta = with lib; {
27     description = "Alternative Yggdrasil network client";
28     homepage = "https://github.com/popura-network/popura";
29     license = licenses.lgpl3Only;
30     maintainers = with maintainers; [ urandom ];
31     mainProgram = "yggdrasil";
32   };