From 72f7461bcced82527d7e96a291133e3f02d352ff Mon Sep 17 00:00:00 2001 From: Casey Ransom Date: Wed, 2 Jul 2025 15:33:36 -0400 Subject: [PATCH] Always apply specified gemConfig for targets I don't think this is the ideal fix, but I ran into an issue where I needed to supply other libs to buildInputs for autopatchelf (it was missing libmusl for libdatadog for my case). The applyConfig would only apply my gemConfig changes if it intended to compile them, which looks to be entirely dependent on if there are multiple targets for the same gem. --- modules/gems/expand.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gems/expand.nix b/modules/gems/expand.nix index f815923..a711610 100644 --- a/modules/gems/expand.nix +++ b/modules/gems/expand.nix @@ -18,7 +18,7 @@ rec { attrs: let f = gemConfig.${attrs.gemName}; - apply = (gemConfig ? ${attrs.gemName}) && attrs.compile; + apply = (gemConfig ? ${attrs.gemName}); in if apply then attrs // f attrs else attrs;