dream2nix
Simplified nix packaging for various programming language ecosystems [maintainer=@DavHau] (by nix-community)
nix-npm-buildpackage
Build nix packages that use npm/yarn (by serokell)
dream2nix | nix-npm-buildpackage | |
---|---|---|
9 | 4 | |
863 | 97 | |
2.8% | - | |
9.6 | 3.3 | |
4 days ago | 7 months ago | |
Nix | Nix | |
MIT License | GNU General Public License v3.0 only |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
dream2nix
Posts with mentions or reviews of dream2nix.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-02-07.
- Dream2nix – Automate reproducible packaging for various language ecosystems
-
flox – Harness the Power of Nix
(I'm on the flox team) we'd love to support that and it's something we've talked about! We already support auto-generation for some languages like Rust because they have a lockfile (e.g. Cargo.lock), but it's a bit trickier for a requirements.txt. We hope at some point to contribute to/integrate with upstream efforts like dream2nix which have auto-generation as their goal
-
Minimal approach for python devel environment with flake
How about dream2nix? I like to use the nix way, but there are many third nix ways
- New BFF
-
yarnpnp2nix: More efficient way of packaging NodeJS applications
I'm not 100% sure, but looking at the docs [here](https://nix-community.github.io/dream2nix/subsystems/node.html#granular-pure-default) and the implementation [here](https://github.com/nix-community/dream2nix/tree/main/src/subsystems/nodejs/builders/granular-nodejs) it seems as it builds dependencies separately and symlinks (see `install-deps.py` those into a `node_modules` tree. I don't know much about Yarn's PNP (was doing more backend/devex last few years), but it sounds vaguely similar in that each package should be built once as a separate derivation and then symlinked to a big `node_modules`-as-a-symlink-tree derivation?
-
How do you build NodeJS project in Nix? 2022
How are you building your NodeJS project with Nix right now? Recently I spot a new abstraction, it looks good but I havn't tried it yet: https://github.com/nix-community/dream2nix
-
dream2nix - include a test run? (node project)
dream2nix is a great package, that makes a nix-derivation out of node project with the minimal flake
-
Why aren't systems like NixOS and GNU Guix more popular?
The DavHau/dream2nix project aims to be a generic solution for this issue by splitting the problem into specific stages, each of which can be configured individually (e.g., changing the level of purity)
- Betting on Nix
nix-npm-buildpackage
Posts with mentions or reviews of nix-npm-buildpackage.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-08-25.
-
How do you build NodeJS project in Nix? 2022
https://github.com/serokell/nix-npm-buildpackage .
-
How to build clojurescript project with nix?
The struggle began when I tried to set up nix build to build my webapp. The issue is that clojure have some dependencies and npm has other dependencies. First I managed to get all nom dependencies included by using npm-buildpackage. This seems to be working correctly. However when building the application with shadow-cljs it fails. My guess is that it fails when trying to get dependencies from my deps.edn file.
-
Could you give me some tips on using node2nix or yarn2nix to install node packages that are not in the main node packages repo:
I’ve spent too much time trying to make mkYarnPackage from nixpkgs to work and finally found https://github.com/serokell/nix-npm-buildpackage, which at least for yarn pretty much worked out of the box for me.
-
How to install dependencies with Nix?
I usually got by with the python stuff in nixpkgs. Other than that for applications I would probably recommend poetry2nix as mentioned. For the nodejs I would use https://github.com/serokell/nix-npm-buildpackage
What are some alternatives?
When comparing dream2nix and nix-npm-buildpackage you can also consider the following projects:
flake-registry - Global registry of Nix flakes
nix-darwin - nix modules for darwin
nix-portable - Nix - Static, Permissionless, Installation-free, Pre-configured
node2nix - Generate Nix expressions to build NPM packages
Home Manager using Nix - Manage a user environment using Nix [maintainer=@rycee]
nixpkgs - Nix Packages collection & NixOS
nixcfg - My nix configuration(s), using flakes. It's my laptop, it's my servers, it's my everything, in code.
math-preview
system - My NixOS configuration
clj-nix - Nix helpers for Clojure projects
dream2nix vs flake-registry
nix-npm-buildpackage vs nix-darwin
dream2nix vs nix-portable
nix-npm-buildpackage vs node2nix
dream2nix vs Home Manager using Nix
nix-npm-buildpackage vs Home Manager using Nix
dream2nix vs nixpkgs
nix-npm-buildpackage vs nixpkgs
dream2nix vs nixcfg
nix-npm-buildpackage vs math-preview
dream2nix vs system
nix-npm-buildpackage vs clj-nix