Comments (3)
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:
{
systems = { url = "path:./flake.systems.nix"; flake = false; };
jj = { url = "github:martinvonz/jj"; inputs."flake-utils".inputs."systems".follows = "system"; };
}
and I can see from reading the lock file that the override is not working.
from flake-utils.
I guess I can override flake-utils
, with it's system
overridden, and then pass that to jj
as an override, but ... this is going to get hairy fast. So this sorta works:
{
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?
from flake-utils.
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.
from flake-utils.
Related Issues (20)
- nix flake check fails with overlays because arguments are not properly named HOT 2
- Transfer to nix-community? HOT 3
- Nixos module in simple flake HOT 1
- simpleFlake exposes `overlays` output as list HOT 1
- simpleFlake to support defaultSystems HOT 2
- Outputs spec update makes `eachSystemMap` powerful HOT 2
- flake-utils.lib.mkApp is broken with nix 2.8 HOT 4
- move functions to nixpkgs HOT 2
- Use `meta.mainProgram` by default in `mkApp` HOT 4
- Request for Semantic Version Pinning HOT 1
- Request for Semantic Version Pinning HOT 1
- `flattenTree` cannot seem to flatten `legacyPackages` to a `packages`-compatible format HOT 5
- Should `filterPackages` check `meta.hydraPlatforms`? HOT 2
- nixops support HOT 4
- self parameter for eachSystem/eachDefaultSystem HOT 2
- single arch+os override flake HOT 15
- Potential feature-freeze or deprecation in favor of flake-parts HOT 2
- master rename to main breaks nix flake update HOT 3
- This `flake.system.nix` approach... relies on a broken nix feature
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flake-utils.