GithubHelp home page GithubHelp logo

Comments (6)

roberth avatar roberth commented on June 9, 2024

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.

srid avatar srid commented on June 9, 2024

@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.

roberth avatar roberth commented on June 9, 2024

@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.

srid avatar srid commented on June 9, 2024

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.

roberth avatar roberth commented on June 9, 2024

That's how it seems, but types are also functions (from value to value) and monoid instances. Funky stuff ensues.

from flake-parts.

roberth avatar roberth commented on June 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.