about summary refs log tree commit diff
path: root/pkgs/by-name/li
diff options
context:
space:
mode:
authorThiago Kenji Okada <thiagokokada@gmail.com>2024-01-09 13:26:00 +0000
committerGitHub <noreply@github.com>2024-01-09 13:26:00 +0000
commitb4b447868287df260e3f0acaab986312064b0726 (patch)
treee5338cdf943fd4fde9c98efa323feff52233e28e /pkgs/by-name/li
parent487c554ea0f982e3626528f969934b5143ea36b7 (diff)
parent243ec9a4e70ca6cd8158317c248766f86e389047 (diff)
downloadnixlib-b4b447868287df260e3f0acaab986312064b0726.tar
nixlib-b4b447868287df260e3f0acaab986312064b0726.tar.gz
nixlib-b4b447868287df260e3f0acaab986312064b0726.tar.bz2
nixlib-b4b447868287df260e3f0acaab986312064b0726.tar.lz
nixlib-b4b447868287df260e3f0acaab986312064b0726.tar.xz
nixlib-b4b447868287df260e3f0acaab986312064b0726.tar.zst
nixlib-b4b447868287df260e3f0acaab986312064b0726.zip
Merge pull request #278944 from jwijenbergh/eduvpn-client
eduvpn-client: init at 4.2.0
Diffstat (limited to 'pkgs/by-name/li')
-rw-r--r--pkgs/by-name/li/libeduvpn-common/package.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/by-name/li/libeduvpn-common/package.nix b/pkgs/by-name/li/libeduvpn-common/package.nix
new file mode 100644
index 000000000000..5e74e01ddecf
--- /dev/null
+++ b/pkgs/by-name/li/libeduvpn-common/package.nix
@@ -0,0 +1,37 @@
+{ lib
+, buildGoModule
+, fetchurl
+}:
+
+buildGoModule rec {
+  pname = "libeduvpn-common";
+  version = "1.2.0";
+
+  src = fetchurl {
+    url = "https://github.com/eduvpn/eduvpn-common/releases/download/${version}/eduvpn-common-${version}.tar.xz";
+    hash = "sha256-CqpOgvGGD6pW03fvKUzgoeCz6YgnzuYK2u5Zbw+/Ks4=";
+  };
+
+  vendorHash = null;
+
+  buildPhase = ''
+    runHook preBuild
+    go build -o ${pname}-${version}.so -buildmode=c-shared -tags=release ./exports
+    runHook postBuild
+  '';
+
+  installPhase = ''
+    runHook preInstall
+    install -Dt $out/lib ${pname}-${version}.so
+    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;
+  };
+}