Language-specific package helpers: Difference between revisions
imported>Mic92 Napalm is what you need for nodejs |
imported>Kolloch Move carnix to outdated after discussion in https://github.com/kolloch/crate2nix/issues/99 |
||
Line 49: | Line 49: | ||
* [https://github.com/nmattia/naersk naersk] Pure nix, works well with dependencies from crates.io. Builds rust crates dependencies in one derivation and the crate itself in another. | * [https://github.com/nmattia/naersk naersk] Pure nix, works well with dependencies from crates.io. Builds rust crates dependencies in one derivation and the crate itself in another. | ||
* [https://github.com/kolloch/crate2nix crate2nix] Uses `buildRustCrate` from `nixpkgs` to build all dependencies independently. Either check in the generated build file or use it via "import from derivation". | * [https://github.com/kolloch/crate2nix crate2nix] Uses `buildRustCrate` from `nixpkgs` to build all dependencies independently. Either check in the generated build file or use it via "import from derivation". | ||
Outdated or deprecated projects: | Outdated or deprecated projects: | ||
* [https://pijul.org/2017/12/12/buildrustcrate/ carnix] [https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/rust.section.md#compiling-rust-crates-using-nix-instead-of-cargo documentation] - Recommended by the docs (which are unfortunately outdated), also integrated into nixpkgs. | |||
* [https://github.com/williamyaoh/cratesio2nix cratesio2nix] | * [https://github.com/williamyaoh/cratesio2nix cratesio2nix] | ||
* [https://github.com/fractalide/nixcrates nixcrates] | * [https://github.com/fractalide/nixcrates nixcrates] |
Revision as of 20:05, 19 February 2020
The official overview can be found in the nixpkgs manual.
Elisp
Erlang
Go
Haskell
- cabal2nix
- haskell-overridez - Simplify usage of nix dependencies during haskell development
- snack
JavaScript / Node.js
- node2nix, Recommend for use in nixpkgs
- napalm, Imports package-lock.json into nix directly
- npm2nix
- yarn-based (carry the same name but different implementations), yarn is a drop-in for `npm`:
- bower2nix
Lua
OCaml
Perl
Python
- pypi2nix - Recommended by Community
- nixpkgs-pytools semi-automated way to add python packages to nixpkgs.
- pip2nix
- 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".
Outdated or deprecated projects:
- carnix documentation - Recommended by the docs (which are unfortunately outdated), also integrated into nixpkgs.
- cratesio2nix
- nixcrates
- nix-crates-index
- manilla