mach-nix/tests/test_flakes.nix
DavHau c2812bebdb
Fix + Improve CI (#275)
- disable tests on macos due to https://github.com/actions/virtual-environments/issues/60
- enable testing of different mach-nix expressions in ./tests
- fix cryptography package < 3.4
2021-05-14 13:54:55 +07:00

22 lines
585 B
Nix

{
mach-nix ? import ../. {},
...
}:
with builtins;
let
pyEnv = (builtins.getFlake (toString ../.)).packages.x86_64-linux.gen.python.requests;
pyEnvShell = (builtins.getFlake (toString ../.)).packages.x86_64-linux.gen.shell.requests;
pyEnvDockerImage = (builtins.getFlake (toString ../.)).packages.x86_64-linux.gen.docker.requests;
in
(map (p:
if p ? _passthru.python.pkgs.requests then
p
else
throw "Error"
) [pyEnv pyEnvDockerImage])
++ [
(if ! pyEnvShell ? _passthru.python.pkgs.requests then
throw "Error with shell"
else
mach-nix.nixpkgs.hello)
]