uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
33
nixos/tests/hitch/default.nix
Normal file
33
nixos/tests/hitch/default.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
import ../make-test-python.nix ({ pkgs, ... }:
|
||||
{
|
||||
name = "hitch";
|
||||
meta = with pkgs.lib.maintainers; {
|
||||
maintainers = [ jflanglois ];
|
||||
};
|
||||
nodes.machine = { pkgs, ... }: {
|
||||
environment.systemPackages = [ pkgs.curl ];
|
||||
services.hitch = {
|
||||
enable = true;
|
||||
backend = "[127.0.0.1]:80";
|
||||
pem-files = [
|
||||
./example.pem
|
||||
];
|
||||
};
|
||||
|
||||
services.httpd = {
|
||||
enable = true;
|
||||
virtualHosts.localhost.documentRoot = ./example;
|
||||
adminAddr = "noone@testing.nowhere";
|
||||
};
|
||||
};
|
||||
|
||||
testScript =
|
||||
''
|
||||
start_all()
|
||||
|
||||
machine.wait_for_unit("multi-user.target")
|
||||
machine.wait_for_unit("hitch.service")
|
||||
machine.wait_for_open_port(443)
|
||||
assert "We are all good!" in machine.succeed("curl -fk https://localhost:443/index.txt")
|
||||
'';
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue