Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
42 lines
1016 B
Nix
42 lines
1016 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchurl,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "libeduvpn-common";
|
|
version = "3.0.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://codeberg.org/eduVPN/eduvpn-common/releases/download/${version}/eduvpn-common-${version}.tar.xz";
|
|
hash = "sha256-aQpOoY3rDF9DeQ/8tRYdBs4s2IdwAe62y9KfXPMsb4k=";
|
|
};
|
|
|
|
vendorHash = null;
|
|
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
go build -o libeduvpn-common-${version}.so -buildmode=c-shared -tags=release ./exports
|
|
runHook postBuild
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -Dt $out/lib libeduvpn-common-${version}.so
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
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 lib.maintainers; [
|
|
benneti
|
|
jwijenbergh
|
|
];
|
|
license = lib.licenses.mit;
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|