about summary refs log tree commit diff
diff options
context:
space:
mode:
authorKevin Cox <kevincox@kevincox.ca>2020-11-19 08:49:49 -0500
committerGitHub <noreply@github.com>2020-11-19 08:49:49 -0500
commitb50e2ece87433eaa7d45459be981d892015c66e4 (patch)
treef9d833e41bf7900e79176cc12aefd12c1d433f29
parent209796fe6e383c58760b9a2ce3cb25948f433985 (diff)
parent94fd56594a6543fac73e972952d87ed635cfbda4 (diff)
Merge pull request #99557 from 06kellyjac/conftest_version
conftest: fix version command
-rw-r--r--pkgs/development/tools/conftest/default.nix20
1 files changed, 16 insertions, 4 deletions
diff --git a/pkgs/development/tools/conftest/default.nix b/pkgs/development/tools/conftest/default.nix
index ee048466a3d5d..c49cd8685fb67 100644
--- a/pkgs/development/tools/conftest/default.nix
+++ b/pkgs/development/tools/conftest/default.nix
@@ -15,13 +15,25 @@ 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";
+    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 ];