You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nix-instantiate can handle nix expressions that are attribute sets of other derivations just fine, so ci.nix can just be passed directly instead of preprocessing it with jobs.nix. This is nice because the user can organize their ci.nix however they want; e.g. they can have it return a list or just a single derivation, and nix-instantiate will handle it fine.
The problem is recursive attribute sets. jobs.nix handles this currently, but it's a little ad-hoc and gross. The more proper way to support this is to just require them to use recurseIntoAttrs if they want a nested ci.nix:
I'm not entirely following (I never said jobs.nix was necessary, it's there simply as it's sufficient to implement what I wanted). If you think you have something similar, I will happily take a PR. It might be easier to discuss this one over code.
nix-instantiate
can handle nix expressions that are attribute sets of other derivations just fine, soci.nix
can just be passed directly instead of preprocessing it withjobs.nix
. This is nice because the user can organize theirci.nix
however they want; e.g. they can have it return a list or just a single derivation, andnix-instantiate
will handle it fine.The problem is recursive attribute sets.
jobs.nix
handles this currently, but it's a little ad-hoc and gross. The more proper way to support this is to just require them to userecurseIntoAttrs
if they want a nestedci.nix
:This works with
nix-instantiate
out of the box. Nojobs.nix
required.The text was updated successfully, but these errors were encountered: