From 024f5b30e0a3231dbe99c30192f92ba0058d95f5 Mon Sep 17 00:00:00 2001 From: 06kellyjac Date: Sun, 4 Oct 2020 14:54:37 +0100 Subject: conftest: fix version command --- pkgs/development/tools/conftest/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/development/tools/conftest/default.nix b/pkgs/development/tools/conftest/default.nix index ee048466a3d5d..4f2ee6e612d05 100644 --- a/pkgs/development/tools/conftest/default.nix +++ b/pkgs/development/tools/conftest/default.nix @@ -15,10 +15,12 @@ buildGoModule rec { doCheck = false; - buildFlagsArray = '' - -ldflags= - -X main.version=${version} - ''; + 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"; -- cgit 1.4.1 From 94fd56594a6543fac73e972952d87ed635cfbda4 Mon Sep 17 00:00:00 2001 From: 06kellyjac Date: Sun, 4 Oct 2020 14:58:32 +0100 Subject: conftest: add longDescription --- pkgs/development/tools/conftest/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/tools/conftest/default.nix b/pkgs/development/tools/conftest/default.nix index 4f2ee6e612d05..c49cd8685fb67 100644 --- a/pkgs/development/tools/conftest/default.nix +++ b/pkgs/development/tools/conftest/default.nix @@ -24,6 +24,16 @@ buildGoModule rec { 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 ]; -- cgit 1.4.1