summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2024-07-08 14:53:44 +0200
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2024-07-31 17:10:05 +0000
commitb49098401ac3a408af994a7c8b5cddcc61e50fb5 (patch)
tree8db13275b3ab1a0660b116ba137cf99724211236
parentMerge pull request #331314 from NixOS/backport-330734-to-release-24.05 (diff)
downloadnixpkgs-origin/backport-325539-to-release-24.05.tar.gz
open-policy-agent: fix build against go 1.22.5origin/backport-325539-to-release-24.05
(cherry picked from commit be197dd7c611385e0f7f9f16c7712a0aa39fb225)
-rw-r--r--pkgs/development/tools/open-policy-agent/default.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/development/tools/open-policy-agent/default.nix b/pkgs/development/tools/open-policy-agent/default.nix
index 146a2e0c3bbe..2f0b0cef8ffd 100644
--- a/pkgs/development/tools/open-policy-agent/default.nix
+++ b/pkgs/development/tools/open-policy-agent/default.nix
@@ -2,6 +2,7 @@
, stdenv
, buildGoModule
, fetchFromGitHub
+, fetchpatch
, installShellFiles
, enableWasmEval ? false
@@ -20,6 +21,15 @@ buildGoModule rec {
hash = "sha256-IIW6AXv5x+uQGCZulPPB7IhRlCq7Ww76qUhMHg3Fx7g=";
};
+ patches = [
+ # fix tests in 1.22.5
+ # https://github.com/open-policy-agent/opa/pull/6845
+ (fetchpatch {
+ url = "https://github.com/open-policy-agent/opa/commit/956358516c23b1f33f6667961e20aca65b91355b.patch";
+ hash = "sha256-1nfMwJwbYfdLg9j4ppP1IWdDeFq6vhXcDKr6uprP53U=";
+ })
+ ];
+
vendorHash = null;
nativeBuildInputs = [ installShellFiles ];