Language-specific package helpers: Difference between revisions

imported>Savannidgerinel
Added crane to the list of Rust crates
imported>Mic92
update rust helper
Line 57: Line 57:
=== Rust ===
=== Rust ===
* [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/nix-community/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/tenx-tech/cargo2nix cargo2nix] Uses a `mkCrate` wrapper around Cargo and `rustc` to build all dependencies independently. Supports cross-compilation, alternative registries, and `nix-shell` integration.
* [https://github.com/cargo2nix/cargo2nix cargo2nix] Uses a `mkCrate` wrapper around Cargo and `rustc` to build all dependencies independently. Supports cross-compilation, alternative registries, and `nix-shell` integration.
* [https://github.com/ipetkov/crane crane] Builds rust crate dependencies in one derivation and the crate itself in another. Boilerplate setup for running test suites.
* [https://github.com/ipetkov/crane crane] Builds rust crate dependencies in one derivation and the crate itself in another. Boilerplate setup for running test suites.
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/fractalide/nixcrates nixcrates]
* [https://github.com/fractalide/nix-crates-index nix-crates-index]
* [https://github.com/williamyaoh/manilla manilla]


=== Scala ===
=== Scala ===
* [https://gitlab.com/teozkr/Sbtix sbtix]
* [https://gitlab.com/teozkr/Sbtix sbtix]