From 746b1f3d7b8a928080d4de75ac4cc7cdf9283872 Mon Sep 17 00:00:00 2001 From: Georges Dubus Date: Wed, 17 Aug 2022 11:57:05 +0200 Subject: [PATCH] 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. --- mach_nix/nix/withDot.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mach_nix/nix/withDot.nix b/mach_nix/nix/withDot.nix index ed56d7b..ca8e83f 100644 --- a/mach_nix/nix/withDot.nix +++ b/mach_nix/nix/withDot.nix @@ -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 =