gytis-ivaskevicius / flake-utils-plus

Use Nix flakes without any fluff.
MIT License
494 stars 54 forks source link

`channels.<name>.input` should be auto picked up if not explicitly defined #61

Closed gytis-ivaskevicius closed 3 years ago

gytis-ivaskevicius commented 3 years ago

Just a simplification for a very common use case. Should not be complicated to implement

https://github.com/gytis-ivaskevicius/flake-utils-plus/blob/staging/src/systemFlake.nix#L182-L193

Pacman99 commented 3 years ago

Ohh yeah we set this up in devos, should be simple enough to implement here.

Maybe we can add a evalChannelArgs to be able to set defaults for channel arguments, "channels submodule".

gytis-ivaskevicius commented 3 years ago

@Pacman99 mind giving me some sort of example of this evalChannelArgs?

Pacman99 commented 3 years ago
evalChannelArgs = name:
  { input ? inputs.name
  , overlaysBuilder ? (_: [ ])
  , config ? { }

just a random idea, not sure if it should be done.

gytis-ivaskevicius commented 3 years ago

Oh, I get it. But I don't think it brings much if any value? So I'm thinking that this should get implemented when some sort of use case comes up

gytis-ivaskevicius commented 3 years ago

Resolved in staging