2 system ? builtins.currentSystem
3 , pkgs ? import ../.. { inherit system; }
6 import ./make-test-python.nix ({ pkgs, lib, ... }: let
11 maintainers = lib.teams.helsinki-systems.members;
15 varnish = { config, pkgs, ... }: {
16 services.nix-serve = {
23 http_address = "0.0.0.0:80";
29 .port = "${toString config.services.nix-serve.port}";
34 networking.firewall.allowedTCPPorts = [ 80 ];
35 system.extraDependencies = [ testPath ];
38 client = { lib, ... }: {
41 substituters = lib.mkForce [ "http://varnish" ];
48 varnish.wait_for_open_port(80)
50 client.wait_until_succeeds("curl -f http://varnish/nix-cache-info");
52 client.wait_until_succeeds("nix-store -r ${testPath}");
53 client.succeed("${testPath}/bin/hello");