Fix nix (build|shell) mach-nix#gen

`nix (build|shell) mach-nix#gen` is broken on recent nix versions because
of https://github.com/NixOS/nix/issues/6690.

This commit fixes it by removing `meta` from the list of handled packages.
As a result, nix can access the derivation's meta as expected, and work
as expected.

The side effect is that the `meta` package on pypi cannot be used, but
that's a cost we have to pay.
This commit is contained in:
Georges Dubus 2022-08-17 11:57:05 +02:00
parent f15ea8677d
commit 746b1f3d7b

View file

@ -10,7 +10,7 @@ let
};
attrs_list = map (n:
{ name = n; value = (gen attr (selected ++ [n])); }
) names;
) (filter (n: n!= "meta") names);
drv = if attr == "" then pyEnvBase else pyEnvBase."${attr}";
pyEnv = drv.overrideAttrs (oa: {
passthru =