If I have to add a boolean flake input, it would look like: inputs.flag.url = “github:boolean-options/true”;
. This depends on github, is there a way to add this input without this dependency?
Or is at a limitation of flake inputs that nix expressions can’t be flake inputs
Inputs can't be arbitrary expressions: https://github.com/NixOS/nix/issues/5663
You can use path:./...
to point local flake though. Not sure if the hash is consistent across systems (need to verify), because I remember inconsistency when using local relative flake inputs in the path.
Not yet, but there really isn't a good reason in my view (if you look at the last comment on that ticket I elaborate on that a bit)
I was looking for this to use in an internal project at work because I was getting rate-limited in CI by github, failing the build. I ended up creating a subflake with true
and false
flake’s and I am accessing it in another flake with the ?dir=<subdir>
URL syntax.
Last updated: Nov 13 2024 at 13:02 UTC