1 import ./make-test-python.nix ({ pkgs, ... }:
4 nodes.machine = { pkgs, ... }: {
5 services.nix-serve.enable = true;
6 environment.systemPackages = [
11 pkgHash = builtins.head (
12 builtins.match "${builtins.storeDir}/([^-]+).+" (toString pkgs.hello)
16 machine.wait_for_unit("nix-serve.service")
17 machine.wait_for_open_port(5000)
19 "curl --fail -g http://0.0.0.0:5000/nar/${pkgHash}.nar -o /tmp/hello.nar"