storj-uplink: 1.119.15 -> 1.120.4 (#375732)
[NixPkgs.git] / pkgs / by-name / li / libeduvpn-common / package.nix
blob0b052cd5c3d4fb8fa83153d3756d9867b703d37d
2   lib,
3   buildGoModule,
4   fetchurl,
5 }:
7 buildGoModule rec {
8   pname = "libeduvpn-common";
9   version = "2.1.0";
11   src = fetchurl {
12     url = "https://github.com/eduvpn/eduvpn-common/releases/download/${version}/eduvpn-common-${version}.tar.xz";
13     hash = "sha256-OgcinEeKMDtZj3Tw+7cMsF385ZZTBR/J5dqIihDTlj8=";
14   };
16   vendorHash = null;
18   buildPhase = ''
19     runHook preBuild
20     go build -o libeduvpn-common-${version}.so -buildmode=c-shared -tags=release ./exports
21     runHook postBuild
22   '';
24   installPhase = ''
25     runHook preInstall
26     install -Dt $out/lib libeduvpn-common-${version}.so
27     runHook postInstall
28   '';
30   meta = with lib; {
31     changelog = "https://raw.githubusercontent.com/eduvpn/eduvpn-common/${version}/CHANGES.md";
32     description = "Code to be shared between eduVPN clients";
33     homepage = "https://github.com/eduvpn/eduvpn-common";
34     maintainers = with maintainers; [
35       benneti
36       jwijenbergh
37     ];
38     license = licenses.mit;
39     platforms = platforms.linux;
40   };