Git Product home page Git Product logo

Comments (2)

4e6 avatar 4e6 commented on August 22, 2024

This could be useful, but I don't think this should be implemented as a part of this project. Mixing in a state management would complicate things a lot (you know, caching and naming things). Also, stackage2nix does not duplicate build definition, I like to think of it as a function that translates Stack build definition into Nix. And I want to keep the property of idempotence when with fixed inputs we get the same output.

Also, I believe the problem of managing (fixing) inputs can be done separately using pure Nix. The only thing is missing is the ability to generate stackage packages (packages.nix and configuration-packages.nix) and package overrides (default.nix) separately. This could be done by adding a couple of configuration flags, in a much less invasive way.

What you can do now is to create such proof of concept build definition manually in Nix, as an example of stackage2nix usage. And then it would be more clear if stackage2nix can adapt something from it.

from stackage2nix.

nc6 avatar nc6 commented on August 22, 2024

Makes sense, and I had started thinking the same way about splitting this functionality out. I'll work on that and raise separate issues for allowing generation of stackage and project packages separately.

from stackage2nix.

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.