hydra: hack-patch allowed URIs to work around Nix issue #5039
This commit is contained in:
parent
1093e326e5
commit
82e161dba3
@ -468,6 +468,7 @@ in
|
||||
patches = oa.patches or [] ++ [
|
||||
./hydra-conda.patch
|
||||
./hydra-restrictdist.patch
|
||||
./hydra-hack-allowed-uris.patch # work around https://github.com/NixOS/nix/issues/5039
|
||||
];
|
||||
hydraPath = oa.hydraPath + ":" + super.lib.makeBinPath [ super.jq ];
|
||||
});
|
||||
|
13
nixbld-etc-nixos/hydra-hack-allowed-uris.patch
Normal file
13
nixbld-etc-nixos/hydra-hack-allowed-uris.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/src/hydra-eval-jobs/hydra-eval-jobs.cc b/src/hydra-eval-jobs/hydra-eval-jobs.cc
|
||||
index 934bf42e..48f2d248 100644
|
||||
--- a/src/hydra-eval-jobs/hydra-eval-jobs.cc
|
||||
+++ b/src/hydra-eval-jobs/hydra-eval-jobs.cc
|
||||
@@ -281,6 +281,8 @@ int main(int argc, char * * argv)
|
||||
to the environment. */
|
||||
evalSettings.restrictEval = true;
|
||||
|
||||
+ evalSettings.allowedUris = {"https://github.com/m-labs/misoc.git"};
|
||||
+
|
||||
/* When building a flake, use pure evaluation (no access to
|
||||
'getEnv', 'currentSystem' etc. */
|
||||
evalSettings.pureEval = myArgs.flake;
|
Loading…
Reference in New Issue
Block a user