2024-01-13 08:15:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchurl
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "libeduvpn-common";
|
2024-07-31 10:19:44 +00:00
|
|
|
version = "2.1.0";
|
2024-01-13 08:15:51 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/eduvpn/eduvpn-common/releases/download/${version}/eduvpn-common-${version}.tar.xz";
|
2024-07-31 10:19:44 +00:00
|
|
|
hash = "sha256-OgcinEeKMDtZj3Tw+7cMsF385ZZTBR/J5dqIihDTlj8=";
|
2024-01-13 08:15:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
vendorHash = null;
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
runHook preBuild
|
2024-09-19 14:19:46 +00:00
|
|
|
go build -o libeduvpn-common-${version}.so -buildmode=c-shared -tags=release ./exports
|
2024-01-13 08:15:51 +00:00
|
|
|
runHook postBuild
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2024-09-19 14:19:46 +00:00
|
|
|
install -Dt $out/lib libeduvpn-common-${version}.so
|
2024-01-13 08:15:51 +00:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
changelog = "https://raw.githubusercontent.com/eduvpn/eduvpn-common/${version}/CHANGES.md";
|
|
|
|
description = "Code to be shared between eduVPN clients";
|
|
|
|
homepage = "https://github.com/eduvpn/eduvpn-common";
|
|
|
|
maintainers = with maintainers; [ benneti jwijenbergh ];
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|