evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / li / libeduvpn-common / package.nix
blobf9dce02b5d40acdfd598af9a9fa5034fd78d7d8f
1 { lib
2 , buildGoModule
3 , fetchurl
4 }:
6 buildGoModule rec {
7   pname = "libeduvpn-common";
8   version = "2.1.0";
10   src = fetchurl {
11     url = "https://github.com/eduvpn/eduvpn-common/releases/download/${version}/eduvpn-common-${version}.tar.xz";
12     hash = "sha256-OgcinEeKMDtZj3Tw+7cMsF385ZZTBR/J5dqIihDTlj8=";
13   };
15   vendorHash = null;
17   buildPhase = ''
18     runHook preBuild
19     go build -o libeduvpn-common-${version}.so -buildmode=c-shared -tags=release ./exports
20     runHook postBuild
21   '';
23   installPhase = ''
24     runHook preInstall
25     install -Dt $out/lib libeduvpn-common-${version}.so
26     runHook postInstall
27   '';
29   meta = with lib; {
30     changelog = "https://raw.githubusercontent.com/eduvpn/eduvpn-common/${version}/CHANGES.md";
31     description = "Code to be shared between eduVPN clients";
32     homepage = "https://github.com/eduvpn/eduvpn-common";
33     maintainers = with maintainers; [ benneti jwijenbergh ];
34     license = licenses.mit;
35     platforms = platforms.linux;
36   };