about summary refs log tree commit diff
path: root/pkgs/development/tools/konstraint
diff options
context:
space:
mode:
author06kellyjac <dev@j-k.io>2021-08-20 11:34:40 +0100
committer06kellyjac <dev@j-k.io>2021-08-20 11:34:40 +0100
commit6e16ac084439880d627c7da255a43e991d8de153 (patch)
treea32bab8193359d46d1d6ae86f6b6aa7477bcabb0 /pkgs/development/tools/konstraint
parent456481aa3dd633038c86635f3bcf83d339254119 (diff)
downloadnixlib-6e16ac084439880d627c7da255a43e991d8de153.tar
nixlib-6e16ac084439880d627c7da255a43e991d8de153.tar.gz
nixlib-6e16ac084439880d627c7da255a43e991d8de153.tar.bz2
nixlib-6e16ac084439880d627c7da255a43e991d8de153.tar.lz
nixlib-6e16ac084439880d627c7da255a43e991d8de153.tar.xz
nixlib-6e16ac084439880d627c7da255a43e991d8de153.tar.zst
nixlib-6e16ac084439880d627c7da255a43e991d8de153.zip
konstraint: init at 0.14.2
Diffstat (limited to 'pkgs/development/tools/konstraint')
-rw-r--r--pkgs/development/tools/konstraint/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/tools/konstraint/default.nix b/pkgs/development/tools/konstraint/default.nix
new file mode 100644
index 000000000000..db9edf3b6d35
--- /dev/null
+++ b/pkgs/development/tools/konstraint/default.nix
@@ -0,0 +1,32 @@
+{ lib, buildGoModule, fetchFromGitHub }:
+
+buildGoModule rec {
+  pname = "konstraint";
+  version = "0.14.2";
+
+  src = fetchFromGitHub {
+    owner = "plexsystems";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "sha256-ESkRycS+ObLaDkb28kvi9Wtc4Lc66qHFz0DYMjEa5eE=";
+  };
+  vendorSha256 = "sha256-uvDYUm6REL1hvj77P/+1fMCE1n6ZUP6rp0ma8O2bVkU=";
+
+  # Exclude go within .github folder
+  excludedPackages = ".github";
+
+  ldflags = [ "-s" "-w" "-X github.com/plexsystems/konstraint/internal/commands.version=${version}" ];
+
+  meta = with lib; {
+    homepage = "https://github.com/plexsystems/konstraint";
+    changelog = "https://github.com/plexsystems/konstraint/releases/tag/v${version}";
+    description = "A policy management tool for interacting with Gatekeeper";
+    longDescription = ''
+      konstraint is a CLI tool to assist with the creation and management of templates and constraints when using
+      Gatekeeper. Automatically copy Rego to the ConstraintTemplate. Automatically update all ConstraintTemplates with
+      library changes. Enable writing the same policies for Conftest and Gatekeeper.
+    '';
+    license = licenses.mit;
+    maintainers = with maintainers; [ jk ];
+  };
+}