Giter Club home page Giter Club logo

Comments (1)

kolloch avatar kolloch commented on July 19, 2024

Well, I guess this is an open question. My main motivation for crate2nix was making my custom binaries buildable/deployable with nixops. I think that nix has great potential for that because with more work it can then also be used for providing extensive dependencies during test (e.g. postgres). That would e.g. make it trivial to run tests against different versions of postgres prior to a migration.

For nixpkgs, I guess there is a trade-off between the size of the nix expressions and reusing cached dependencies. Also for nixpkgs if only some library dependency or the binary code has changed, it is still nice to only re-build what is necessary. If multiple binaries happen to use the exact same library dependency, it has only to been built once. How often that happens, I don't know. You could obviously do more work to ensure that binaries use the same library versions as long as they are compatible. This would be similar to adding them to one "cargo workspace". Updating their dependencies on the same snapshot of crates.io would probably already go a long way but then we would not use the locked dependencies of the upstream...

Does that make sense? I'd love to hear your opinion.

from crate2nix.

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.