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
61
nixos/tests/nghttpx.nix
Normal file
61
nixos/tests/nghttpx.nix
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
let
|
||||
nginxRoot = "/run/nginx";
|
||||
in
|
||||
import ./make-test-python.nix ({...}: {
|
||||
name = "nghttpx";
|
||||
nodes = {
|
||||
webserver = {
|
||||
networking.firewall.allowedTCPPorts = [ 80 ];
|
||||
systemd.services.nginx = {
|
||||
preStart = ''
|
||||
mkdir -p ${nginxRoot}
|
||||
echo "Hello world!" > ${nginxRoot}/hello-world.txt
|
||||
'';
|
||||
};
|
||||
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
virtualHosts.server = {
|
||||
locations."/".root = nginxRoot;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
proxy = {
|
||||
networking.firewall.allowedTCPPorts = [ 80 ];
|
||||
services.nghttpx = {
|
||||
enable = true;
|
||||
frontends = [
|
||||
{ server = {
|
||||
host = "*";
|
||||
port = 80;
|
||||
};
|
||||
|
||||
params = {
|
||||
tls = "no-tls";
|
||||
};
|
||||
}
|
||||
];
|
||||
backends = [
|
||||
{ server = {
|
||||
host = "webserver";
|
||||
port = 80;
|
||||
};
|
||||
patterns = [ "/" ];
|
||||
params.proto = "http/1.1";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
client = {};
|
||||
};
|
||||
|
||||
testScript = ''
|
||||
start_all()
|
||||
|
||||
webserver.wait_for_open_port("80")
|
||||
proxy.wait_for_open_port("80")
|
||||
client.wait_until_succeeds("curl -s --fail http://proxy/hello-world.txt")
|
||||
'';
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue