mach-nix/tests/test_flakes_legacy_consistent.nix
2020-11-27 01:08:36 +07:00

19 lines
342 B
Nix

{
mach-nix ? import ../. {},
...
}:
with builtins;
let
mkPythonFlakes = (getFlake (toString ../.)).lib.x86_64-linux.mkPython;
pyFlakes = mkPythonFlakes {
requirements = "requests";
};
py = mach-nix.mkPython {
requirements = "requests";
};
in
if pyFlakes == py then
py
else
throw "flakes and legacy output differ"