19 lines
342 B
Nix
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"
|
|
|