numtide / flake-utils

Pure Nix flake utility functions [maintainer=@zimbatm]
MIT License
1.14k stars 78 forks source link

eachSystem: prefix system-less outpus with `_` #83

Closed nrdxp closed 1 year ago

nrdxp commented 1 year ago

Enhances eachSystem and the functions that build off of it to pass through system-independant outputs such as lib by simply prefixing it with _: _lib.

In additional, attributes prefixed with 2 (__) underscores are passed through unmodified, for the sake of __functor et al.

Currently in use here, but I'd rather use this as an upstream, or possibly even merge the noSys and deSys functions here if you are open to it.

nrdxp commented 1 year ago

We've diverged the logic a bit more in nosys, so I'll close this for now.