about summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2023-01-03 23:25:34 +0100
committerGitHub <noreply@github.com>2023-01-03 23:25:34 +0100
commitd5b36bba0edc9a03d751507c68d06a56c5b116f6 (patch)
treecb8f437fec5763aea740692d9afc892bf10aa599 /pkgs/applications
parentdaf4e55ddbf024ede48cbb557c916d9e2ff0cde1 (diff)
parentd328e92f3d5175a902b060976cbf94f4d55983c3 (diff)
Merge pull request #207802 from urandom2/netmaker
Fixes https://github.com/NixOS/nixpkgs/issues/207654
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/networking/netmaker/default.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/applications/networking/netmaker/default.nix b/pkgs/applications/networking/netmaker/default.nix
new file mode 100644
index 0000000000000..ce074c49cb617
--- /dev/null
+++ b/pkgs/applications/networking/netmaker/default.nix
@@ -0,0 +1,39 @@
+{ buildGoModule, fetchFromGitHub, installShellFiles, lib, libglvnd, pkg-config, xorg }:
+
+buildGoModule rec {
+  pname = "netmaker";
+  version = "0.17.1";
+
+  src = fetchFromGitHub {
+    owner = "gravitl";
+    repo = pname;
+    rev = "v${version}";
+    hash = "sha256-8uxPPhy1/FqPGouqzUxY2lGnO/giqH9bJbAqQ9rZI0g=";
+  };
+
+  vendorHash = "sha256-4LaGwwDu3pKd6I6r/F3isCi9CuFqPGvc5SdVTV34qOI=";
+
+  subPackages = [
+    "."
+    "netclient"
+  ];
+
+  nativeBuildInputs = [ pkg-config ];
+
+  buildInputs = [
+    libglvnd
+    xorg.libX11
+    xorg.libXcursor
+    xorg.libXi
+    xorg.libXinerama
+    xorg.libXrandr
+  ];
+
+  meta = with lib; {
+    description = "WireGuard automation from homelab to enterprise";
+    homepage = "https://netmaker.io";
+    changelog = "https://github.com/gravitl/netmaker/-/releases/v${version}";
+    license = licenses.sspl;
+    maintainers = with maintainers; [ urandom ];
+  };
+}