pull swarm closures through the nix daemon: substituters in the fragment, merged root-only netrc
This commit is contained in:
parent
63ae5d6cbf
commit
ef68baa00f
1 changed files with 582 additions and 382 deletions
18
nix/script-tests/cache-pull-substitute.nix
Normal file
18
nix/script-tests/cache-pull-substitute.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# `checks.script-test-cache-pull-substitute` — runs the closure pull
|
||||
# (`nix-store --realise <top> --max-jobs 0`, hive-c0re/src/cache_pull.rs)
|
||||
# against two file caches: a swarm cache that has the top path and lacks a
|
||||
# dependency, and the host's own substituter that has the dependency. The cases
|
||||
# are in ./cache-pull-substitute.sh.
|
||||
{ pkgs, ... }:
|
||||
pkgs.runCommand "hyperhive-script-test-cache-pull-substitute"
|
||||
{
|
||||
nativeBuildInputs = [
|
||||
pkgs.nix
|
||||
pkgs.coreutils
|
||||
pkgs.gnugrep
|
||||
];
|
||||
}
|
||||
''
|
||||
${pkgs.bash}/bin/bash ${./cache-pull-substitute.sh}
|
||||
touch "$out"
|
||||
''
|
||||
Loading…
Reference in a new issue