Jump to content

Language-specific package helpers: Difference between revisions

From Official NixOS Wiki
Pigeon (talk | contribs)
Pigeon (talk | contribs)
m Make order alphabetical
Line 28: Line 28:
** [https://github.com/stephank/yarn-plugin-nixify yarn-plugin-nixify] by stephank
** [https://github.com/stephank/yarn-plugin-nixify yarn-plugin-nixify] by stephank
* [https://github.com/rvl/bower2nix bower2nix]
* [https://github.com/rvl/bower2nix bower2nix]
=== PureScript ===
* [https://github.com/purs-nix/purs-nix purs-nix]


=== Lua ===
=== Lua ===
Line 41: Line 37:
=== Perl ===
=== Perl ===
* [https://gitee.com/volth/cpan2nix/ cpan2nix]
* [https://gitee.com/volth/cpan2nix/ cpan2nix]
=== PureScript ===
* [https://github.com/purs-nix/purs-nix purs-nix]


=== Python ===
=== Python ===

Revision as of 21:06, 2 December 2025

The Nixpkgs-provided helpers can be found in the Nixpkgs manual.

Elisp

Erlang

Go

Haskell

JavaScript / Node.js

Lua

OCaml

Perl

PureScript

Python

  • uv2nix - uv2nix turns uv projects into Nix derivations
  • 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