konstraint: init at 0.14.2

launchpad/nixpkgs/master
06kellyjac 3 years ago
parent 456481aa3d
commit 6e16ac0844
  1. 32
      pkgs/development/tools/konstraint/default.nix
  2. 2
      pkgs/top-level/all-packages.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 ];
};
}

@ -13994,6 +13994,8 @@ with pkgs;
ko = callPackage ../development/tools/ko { };
konstraint = callPackage ../development/tools/konstraint { };
krankerl = callPackage ../development/tools/krankerl { };
krew = callPackage ../development/tools/krew { };

Loading…
Cancel
Save