Nix-ifying a Rust project

This page summarizes the projects mentioned and recommended in the original post on /r/rust

InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io
featured
  1. himalaya

    CLI to manage emails

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. rust-overlay

    Pure and reproducible nix overlay of binary distributed rust toolchains

    It uses the oxalica overlay instead of the nixpkgs, mainly because I couldn't get rust-analyzer (required by the VSCode extension; see .vscode/ folder) working with the nixpkgs version.

  4. naersk

    Build Rust projects in Nix - no configuration, no code generation, no IFD, sandbox friendly.

    sounds exactly like what naersk does. naersk doesn't need a cargSha256 argument since it downloads dependencies from Cargo.lock. it can also grab the version number from Cargo.toml

  5. Home Manager using Nix

    Manage a user environment using Nix [maintainer=@khaneliman, @rycee]

    You can also use https://github.com/nix-community/home-manager to manage your dotfiles the Nix way.

  6. xplr

    A hackable, minimal, fast TUI file explorer

    Thanks for the post. I'm having trouble nixifying https://github.com/sayanarijit/xplr. Hopefully this post will help. Btw, does anyone know any github actions alternative?

  7. crate2nix

    rebuild only changed crates in CI with crate2nix and nix

    I like the way crate2nix works. I have made a flake template for it here. Sometimes it requires a couple of overrides to fix some misbehaving crates (see https://github.com/balsoft/simple-osd-daemons/blob/master/flake.nix#L29 for an example of such overrides), but otherwise it's fantastic. It doesn't require any hash nonsense, it downloads and builds all the crates separately (unlike naersk or other solutions) so you get all the benefits of Nix (reproducibility and proper caching).

  8. nix-templates

    Nix Flake templates for various languages

    I like the way crate2nix works. I have made a flake template for it here. Sometimes it requires a couple of overrides to fix some misbehaving crates (see https://github.com/balsoft/simple-osd-daemons/blob/master/flake.nix#L29 for an example of such overrides), but otherwise it's fantastic. It doesn't require any hash nonsense, it downloads and builds all the crates separately (unlike naersk or other solutions) so you get all the benefits of Nix (reproducibility and proper caching).

  9. Stream

    Stream - Scalable APIs for Chat, Feeds, Moderation, & Video. Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.

    Stream logo
  10. simple-osd-daemons

    Mirror of https://code.balsoft.ru/balsoft/simple-osd-daemons

    I like the way crate2nix works. I have made a flake template for it here. Sometimes it requires a couple of overrides to fix some misbehaving crates (see https://github.com/balsoft/simple-osd-daemons/blob/master/flake.nix#L29 for an example of such overrides), but otherwise it's fantastic. It doesn't require any hash nonsense, it downloads and builds all the crates separately (unlike naersk or other solutions) so you get all the benefits of Nix (reproducibility and proper caching).

  11. crates.io-index

    Registry index for crates.io

    ++ crate2nix generate -f ./Cargo.toml -o Cargo-generated.nix -h /nix/store/nzvk2yxgmcz0jkzpwsgl4wpvq43646pr-himalaya-crate2nix/cra> Error: while retrieving metadata about ./Cargo.toml: Error during execution of `cargo metadata`: error: no matching package named > location searched: registry `https://github.com/rust-lang/crates.io-index` required by package `himalaya v0.2.2 (/build/source)`

  12. cargo2nix

    Granular builds of Rust projects for Nix

    cargo2nix

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Embrace the Power of Nix for Your Python + Rust Workflow

    2 projects | dev.to | 24 Jul 2024
  • Transitioning to Rust as a company

    8 projects | /r/rust | 2 Jun 2023
  • How to setup devShell for rust development with bevy?

    2 projects | /r/NixOS | 14 Nov 2022
  • What's the best practice for caching compilation of Rust dependencies?

    3 projects | /r/rust | 17 Feb 2022
  • Why We're Moving on from Nix

    8 projects | news.ycombinator.com | 7 Jun 2025