2020-10-12 03:54:19 +00:00
|
|
|
{
|
|
|
|
mach-nix ? import ../. {},
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with builtins;
|
|
|
|
let
|
2021-05-14 06:54:55 +00:00
|
|
|
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;
|
2020-10-12 03:54:19 +00:00
|
|
|
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)
|
|
|
|
]
|