about summary refs log tree commit diff
path: root/pkgs/development/tools/misc/hydra
diff options
context:
space:
mode:
authorNick Cao <nickcao@nichi.co>2023-12-10 12:13:43 -0500
committerNick Cao <nickcao@nichi.co>2023-12-11 09:27:23 -0500
commitcd1eb081adb521260660e5193ab523c2904a4982 (patch)
tree05bb967223828abbd7938cd256f9f2afdee6c550 /pkgs/development/tools/misc/hydra
parent575eb7943915ca6e887d2b849cc4063921fbd847 (diff)
hydra_unstable: add patch for fixing accessing git inputs on flakes
Diffstat (limited to 'pkgs/development/tools/misc/hydra')
-rw-r--r--pkgs/development/tools/misc/hydra/unstable.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/development/tools/misc/hydra/unstable.nix b/pkgs/development/tools/misc/hydra/unstable.nix
index 544a0221737e4..8ee7c7f6fb929 100644
--- a/pkgs/development/tools/misc/hydra/unstable.nix
+++ b/pkgs/development/tools/misc/hydra/unstable.nix
@@ -43,6 +43,7 @@
 , cacert
 , glibcLocales
 , fetchFromGitHub
+, fetchpatch2
 , nixosTests
 }:
 
@@ -132,6 +133,17 @@ stdenv.mkDerivation rec {
     hash = "sha256-FjyMb5ZbPa2GLrRuFMUP/foKb0KvXFKThvgc9faFIw8=";
   };
 
+  patches = [
+    # hydra-eval-jobs: don't use restrict-eval for Flakes
+    # https://github.com/NixOS/hydra/pull/1257
+    # should be removed when https://github.com/NixOS/nix/pull/9547
+    # lands in the nix version used by hydra
+    (fetchpatch2 {
+      url = "https://github.com/NixOS/hydra/commit/9370b0ef977bff7e84ac07a81a0e31e75989276b.patch";
+      hash = "sha256-BRenC0lpWPgzfx42MPJBQ9VBamh5hZXuuVe6TXYKkdE=";
+    })
+  ];
+
   buildInputs = [
     unzip
     libpqxx