-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
eachDefaultSystem docs are sorely missing a real example #94
Comments
This pattern is throwing up red flags for me. Least of all, overriding a transitive dependency with a path doesn't seem to work. I have:
and I can see from reading the lock file that the override is not working. |
I guess I can override {
systems = { url = "path:./flake.systems.nix"; flake = false; };
flake-utils = { url = "github:numtide/flake-utils"; inputs."systems".follows = "systems"; };
jj = { url = "github:martinvonz/jj"; inputs."flake-utils".follows = "flake-utils"; };
} Now I have multiple (enough, really) flake-utils through my flake.lock, but now I also have this version that is slightly different. Now I have to decide if I override every potential flake input that consume flake-utils. Also, a question -- should I have been able to override that dependency transitively? |
I think your last example is the right way to do it, given the current design constraints of flakes. The best is to flatten the inputs as much as possible so there is only one version of each dependency. |
I am also looking for another example. Trying to simplify my flake.nix with Is there any example flake.nix that defines nixosConfigurations and formatter? Using treefmt maybe |
I'm very unconvinced about using a flake import to override the systems that "eachDefaultSystem" is going to build for. I love flakes but seeing inputs used for this seems confusing to me.
Further, I've been looking at/for examples, etc, and have no idea how to get
jj
(https://github.com/martinvonz/jj) to supportriscv64-linux
.The text was updated successfully, but these errors were encountered: