about summary refs log tree commit diff
path: root/pkgs/by-name/ad
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2024-03-03 23:05:24 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2024-03-03 23:05:24 +0100
commit72b6a53308004884f601b5eaa69e217c03cd8538 (patch)
tree4777e9def965eb3145a0f6a73ebcb2570826797c /pkgs/by-name/ad
parent33a869955a056d2e3fc7517a4ff7900e10dc56b8 (diff)
adalanche: init at 2024.1.11
Active Directory ACL Visualizer and Explorer

https://github.com/lkarlslund/adalanche
Diffstat (limited to 'pkgs/by-name/ad')
-rw-r--r--pkgs/by-name/ad/adalanche/package.nix42
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/by-name/ad/adalanche/package.nix b/pkgs/by-name/ad/adalanche/package.nix
new file mode 100644
index 0000000000000..109b327333ac9
--- /dev/null
+++ b/pkgs/by-name/ad/adalanche/package.nix
@@ -0,0 +1,42 @@
+{ lib
+, buildGoModule
+, fetchFromGitHub
+, libpcap
+}:
+
+buildGoModule rec {
+  pname = "adalanche";
+  version = "2024.1.11";
+
+  src = fetchFromGitHub {
+    owner = "lkarlslund";
+    repo = "adalanche";
+    rev = "refs/tags/v${version}";
+    hash = "sha256-SJa2PQCXTYdv5jMucpJOD2gC7Qk2dNdINHW4ZvLXSLw=";
+  };
+
+  vendorHash = "sha256-3HulDSR6rWyxvImWBH1m5nfUwnUDQO9ALfyT2D8xmJc=";
+
+  buildInputs = [
+    libpcap
+  ];
+
+  ldflags = [
+    "-s"
+    "-w"
+    "-X=github.com/lkarlslund/adalanche/modules/version.Version=${version}"
+  ];
+
+  env = {
+    CGO_CFLAGS = "-Wno-undef-prefix";
+  };
+
+  meta = with lib; {
+    description = "Active Directory ACL Visualizer and Explorer";
+    homepage = "https://github.com/lkarlslund/adalanche";
+    changelog = "https://github.com/lkarlslund/Adalanche/releases/tag/v${version}";
+    license = licenses.agpl3Only;
+    maintainers = with maintainers; [ fab ];
+    mainProgram = "adalanche";
+  };
+}