Language-specific package helpers: Difference between revisions

From NixOS Wiki
imported>Ebkalderon
Add cargo2nix as a Rust package helper
imported>Mic92
Remove npm2nix (unmaintained)
Line 21: Line 21:
* [https://github.com/svanderburg/node2nix node2nix], Recommend for use in nixpkgs
* [https://github.com/svanderburg/node2nix node2nix], Recommend for use in nixpkgs
* [https://github.com/nmattia/napalm napalm], Imports package-lock.json into nix directly
* [https://github.com/nmattia/napalm napalm], Imports package-lock.json into nix directly
* [https://github.com/NixOS/npm2nix npm2nix]
* yarn-based (carry the same name but different implementations), yarn is a drop-in for `npm`:
* yarn-based (carry the same name but different implementations), yarn is a drop-in for `npm`:
** [https://github.com/moretea/yarn2nix yarn2nix] by moretea
** [https://github.com/moretea/yarn2nix yarn2nix] by moretea

Revision as of 08:25, 10 March 2020

The official overview can be found in the nixpkgs manual.

Elisp

Erlang

Go

Haskell

JavaScript / Node.js

  • node2nix, Recommend for use in nixpkgs
  • napalm, Imports package-lock.json into nix directly
  • yarn-based (carry the same name but different implementations), yarn is a drop-in for `npm`:
  • bower2nix

Lua

OCaml

Perl

Python

Ruby

Rust

  • naersk Pure nix, works well with dependencies from crates.io. Builds rust crates dependencies in one derivation and the crate itself in another.
  • crate2nix Uses `buildRustCrate` from `nixpkgs` to build all dependencies independently. Either check in the generated build file or use it via "import from derivation".
  • cargo2nix Uses a `mkCrate` wrapper around Cargo and `rustc` to build all dependencies independently. Supports cross-compilation, alternative registries, and `nix-shell` integration.

Outdated or deprecated projects:

Scala