Comments (6)
self'
goes through Nix's flake wiring whereas you could use config
, which contains essentially the same information, unless you're doing something to the outputs outside of mkFlake
(which you're not).
Maybe the module system induces a dependency that we don't expect. --show-trace
may reveal that.
from flake-parts.
@roberth I just got infinite recursion encountered
when using a flake-parts
module. It happens when evaluating self.callCabal2nix
(note: this is a different 'self') from inside haskell overrides: srid/emanote#290 (comment)
(Full trace is in that link)
I'm trying to debug this. Let me know if you have any hints!
Formal bug: srid/haskell-flake#4
from flake-parts.
@srid Another cause could be the use of attrsOf
. lazyAttrsOf
is a safer default in flake modules, as they tend to be a bit more cyclical than your average NixOS configuration setting. My bad because I mentioned attrsOf
in a review.
from flake-parts.
Aha, laziness! lazyAttrsOf
did the trick, thanks!
(It is as if type =
is hacky way to declare types in Nix, and these types do change the behaviour of the expressions.).
from flake-parts.
That's how it seems, but types are also functions (from value to value) and monoid instances. Funky stuff ensues.
from flake-parts.
The original issue seems to have been resolved by removing uses of filterAttrs
and attrsOf
(as opposed to lazyAttrsOf
) and/or defining more options.
If some infinite recursion still occurs, I'm going to need an example to debug it. That'd best be done in a new issue.
from flake-parts.
Related Issues (20)
- Provide a way to easily run doc tests HOT 1
- Explicitly pass default nixpkgs to mkFlake
- Document, how to declare packages only for concrete system
- perSystem.packages cannot be used with recursive packages HOT 1
- NixOS options not 1:1 available HOT 2
- nixosConfigurations example does not invoke nixosConfigurations HOT 2
- infinite recursion when `self` assigned to option HOT 6
- Add `templates` to `flake` HOT 2
- Infinite recursion error when unknown option is set HOT 3
- nix flake show broken HOT 2
- Set `_file` and `_class` for modules defined under `flake.modules.${className}.${moduleName}` HOT 1
- How to define a custom flake attribute for a reusable module HOT 2
- Attribute set is expected to be unique HOT 2
- Generate nixosConfigurations HOT 1
- Per system option with a different name? HOT 4
- Flakestry releases HOT 2
- Q: How to correctly implement a home-manager? HOT 1
- Do we really need nixpkgs in inputs instead of the lightweight nix-community/nixpkgs.lib? HOT 2
- `flake-parts` doesn't evaluate. HOT 3
- Declaring per-system functions as flake outputs HOT 1
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-parts.