alejandra
dream2nix
alejandra | dream2nix | |
---|---|---|
3 | 9 | |
674 | 859 | |
- | 2.3% | |
2.5 | 9.6 | |
6 days ago | 7 days ago | |
Nix | Nix | |
The Unlicense | MIT License |
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.
alejandra
-
How to use Alejandra as Nix formmater
I hope someone using lazy.nvim, has a setup they can share, where they are using alejandra as their nix formmater. I've read the instruction, but can't get it to work other than using the manual command. Hoping to integrate it into the LSP automatically.
-
Packaging / publishing software best practices?
Flakes are best imported from other flakes, but if your system configuration isn’t a flake, you can use builtins.getFlake to load it, like (builtins.getFlake "git+https://github.com/kamadorueda/alejandra?rev=d00d03f0b45d2d1d6e0ae2d110c821b497d8fb09").packages.x86_64-linux.default gives you the alejandra package.
-
Editor support for the nix language?
As others have mentioned, there are a couple of LSP implementations. There's also statix for basic static analysis, as well as a few formatters, including nixpkgs-fmt and alejandra.
dream2nix
- 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
What are some alternatives?
nixpkgs-fmt - Nix code formatter for nixpkgs [maintainer=@zimbatm]
flake-registry - Global registry of Nix flakes
statix - lints and suggestions for the nix programming language
nix-portable - Nix - Static, Permissionless, Installation-free, Pre-configured
rnix-lsp - WIP Language Server for Nix! [maintainer=@aaronjanse]
nix-npm-buildpackage - Build nix packages that use npm/yarn
rust-overlay - Pure and reproducible nix overlay of binary distributed rust toolchains
Home Manager using Nix - Manage a user environment using Nix [maintainer=@rycee]
crane - A Nix library for building cargo projects. Never build twice thanks to incremental artifact caching.
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.
system - My NixOS configuration