Language-specific package helpers: Difference between revisions

From NixOS Wiki
imported>Bennofs
No edit summary
imported>Adisbladis
No edit summary
Line 36: Line 36:


=== Python ===
=== Python ===
* [https://github.com/garbas/pypi2nix pypi2nix] - Recommended by Community
* [https://github.com/nix-community/poetry2nix poetry2nix] - poetry2nix turns Poetry projects into Nix derivations without the need to actually write Nix expressions.
* [https://github.com/nix-community/nixpkgs-pytools nixpkgs-pytools] semi-automated way to add python packages to nixpkgs.
* [https://github.com/nix-community/nixpkgs-pytools nixpkgs-pytools] - semi-automated way to add python packages to nixpkgs.
* [https://github.com/DavHau/mach-nix mach-nix] - Create reproducible python environments from `requirements.txt` (using Nix)
* [https://github.com/DavHau/mach-nix mach-nix] - Create reproducible python environments from `requirements.txt` (using Nix)
* [https://github.com/johbo/pip2nix pip2nix]
* [https://github.com/johbo/pip2nix pip2nix] - Generate nix expressions for Python packages.
* [https://github.com/garbas/pypi2nix pypi2nix] - Generate Nix expressions for Python packages
* [https://github.com/proger/python2nix python2nix]
* [https://github.com/proger/python2nix python2nix]
* [https://github.com/badi/nix-pip nix-pip]
* [https://github.com/badi/nix-pip nix-pip]

Revision as of 09:59, 14 August 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

  • poetry2nix - poetry2nix turns Poetry projects into Nix derivations without the need to actually write Nix expressions.
  • nixpkgs-pytools - semi-automated way to add python packages to nixpkgs.
  • mach-nix - Create reproducible python environments from `requirements.txt` (using Nix)
  • pip2nix - Generate nix expressions for Python packages.
  • pypi2nix - Generate Nix expressions for Python packages
  • python2nix
  • nix-pip

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