about summary refs log tree commit diff
path: root/pkgs/development/tools/conftest
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2022-12-04 14:05:47 +0100
committerGitHub <noreply@github.com>2022-12-04 14:05:47 +0100
commitfa49d3a6850d6d6b80b5296240b52d8711db03c6 (patch)
tree3c0730e0be08d25527781e49bd9c9d1f8af9fe1a /pkgs/development/tools/conftest
parentcc7557c35d95c6111cb3ca4a6ab35aaa73f47255 (diff)
conftest: add changelog to meta
Diffstat (limited to 'pkgs/development/tools/conftest')
-rw-r--r--pkgs/development/tools/conftest/default.nix17
1 files changed, 12 insertions, 5 deletions
diff --git a/pkgs/development/tools/conftest/default.nix b/pkgs/development/tools/conftest/default.nix
index 91334ad9d92e8..7ba2211cc2b38 100644
--- a/pkgs/development/tools/conftest/default.nix
+++ b/pkgs/development/tools/conftest/default.nix
@@ -1,4 +1,8 @@
-{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
+{ lib
+, buildGoModule
+, fetchFromGitHub
+, installShellFiles
+}:
 
 buildGoModule rec {
   pname = "conftest";
@@ -7,10 +11,10 @@ buildGoModule rec {
   src = fetchFromGitHub {
     owner = "open-policy-agent";
     repo = "conftest";
-    rev = "v${version}";
-    sha256 = "sha256-MzvCMPGg2FYInyXcTh/Y7RhhxH4Z7Y3m4Hkni1hi8wI=";
+    rev = "refs/tags/v${version}";
+    hash = "sha256-MzvCMPGg2FYInyXcTh/Y7RhhxH4Z7Y3m4Hkni1hi8wI=";
   };
-  vendorSha256 = "sha256-Dl+ErHyHBf5KbHs7H6RmXT0cMIAQ6hReX4aGsoggWbo=";
+  vendorHash = "sha256-Dl+ErHyHBf5KbHs7H6RmXT0cMIAQ6hReX4aGsoggWbo=";
 
   ldflags = [
     "-s"
@@ -18,7 +22,9 @@ buildGoModule rec {
     "-X github.com/open-policy-agent/conftest/internal/commands.version=${version}"
   ];
 
-  nativeBuildInputs = [ installShellFiles ];
+  nativeBuildInputs = [
+    installShellFiles
+  ];
 
   preCheck = ''
     export HOME="$(mktemp -d)"
@@ -41,6 +47,7 @@ buildGoModule rec {
     description = "Write tests against structured configuration data";
     downloadPage = "https://github.com/open-policy-agent/conftest";
     homepage = "https://www.conftest.dev";
+    changelog = "https://github.com/open-policy-agent/conftest/releases/tag/v${version}";
     license = licenses.asl20;
     longDescription = ''
       Conftest helps you write tests against structured configuration data.