mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
f9b9950c09
conftest: 0.21.0 -> 0.22.0
42 lines
1.2 KiB
Nix
42 lines
1.2 KiB
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "conftest";
|
|
version = "0.22.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "open-policy-agent";
|
|
repo = "conftest";
|
|
rev = "v${version}";
|
|
sha256 = "1mjfb39h6z8dbrqxlvrvnzid7la6wj709kx7dva4126i84cmpyf1";
|
|
};
|
|
|
|
vendorSha256 = "08c4brwvjp9f7cpzywxns6dkhl3jzq9ckyvphm2jnm2kxmkawbbn";
|
|
|
|
doCheck = false;
|
|
|
|
buildFlagsArray = [
|
|
"-ldflags="
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/open-policy-agent/conftest/internal/commands.version=${version}"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Write tests against structured configuration data";
|
|
longDescription = ''
|
|
Conftest helps you write tests against structured configuration data.
|
|
Using Conftest you can write tests for your Kubernetes configuration,
|
|
Tekton pipeline definitions, Terraform code, Serverless configs or any
|
|
other config files.
|
|
|
|
Conftest uses the Rego language from Open Policy Agent for writing the
|
|
assertions. You can read more about Rego in 'How do I write policies' in
|
|
the Open Policy Agent documentation.
|
|
'';
|
|
inherit (src.meta) homepage;
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ yurrriq ];
|
|
};
|
|
}
|