Language-specific package helpers: Difference between revisions

From NixOS Wiki
imported>Researchcrowbar
(add gomod2nix)
(Add yarn-plugin-nixify and minor wording improvement)
 
Line 1: Line 1:
__NOTOC__ <!-- Page too short for TOC to be useful -->
__NOTOC__ <!-- Page too short for TOC to be useful -->
The official overview can be found in the [http://nixos.org/nixpkgs/manual/#chap-language-support nixpkgs manual].
The Nixpkgs-provided helpers can be found in the [http://nixos.org/nixpkgs/manual/#chap-language-support Nixpkgs manual].


=== Elisp ===
=== Elisp ===
Line 26: Line 26:
** [https://github.com/moretea/yarn2nix yarn2nix] by moretea
** [https://github.com/moretea/yarn2nix yarn2nix] by moretea
** [https://github.com/Profpatsch/yarn2nix yarn2nix] by Profpatsch
** [https://github.com/Profpatsch/yarn2nix yarn2nix] by Profpatsch
** [https://github.com/stephank/yarn-plugin-nixify]
* [https://bitbucket.org/shlevy/bower2nix bower2nix]
* [https://bitbucket.org/shlevy/bower2nix bower2nix]



Latest revision as of 13:32, 26 June 2024

The Nixpkgs-provided helpers 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

PureScript

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.
  • pynixify - Create a nixpkgs overlay with human-readable expressions for each package
  • pip2nix - Generate nix expressions for Python packages.

Abandoned / discontinued:

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.
  • crane Builds rust crate dependencies in one derivation and the crate itself in another. Boilerplate setup for running test suites.

Scala