Nix Rust

Open-source Nix projects categorized as Rust
Nix Nixos Cargo flake CI

Top 17 Nix Rust Projects

  1. dream2nix

    Simplified nix packaging for various programming language ecosystems [maintainer=@DavHau]

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. rust-overlay

    Pure and reproducible nix overlay of binary distributed rust toolchains

  4. crane

    A Nix library for building cargo projects. Never build twice thanks to incremental artifact caching.

    Project mention: Debian's approach to Rust โ€“ Dependency handling (2022) | news.ycombinator.com | 2024-12-26

    https://github.com/ipetkov/crane makes integrating rust and nix incredibly easy

  5. alejandra

    The Uncompromising Nix Code Formatter

    Project mention: Alejandra: The Uncompromising Nix Code Formatter | news.ycombinator.com | 2024-09-19
  6. fenix

    Rust toolchains and rust-analyzer nightly for Nix [maintainer=@figsoda] (by figsoda)

  7. cargo2nix

    Granular builds of Rust projects for Nix

  8. crate2nix

    rebuild only changed crates in CI with crate2nix and nix

  9. rnix-parser

    A Nix parser written in Rust [maintainer=@oberblastmeister]

  10. rust-nix-template

    Rust project template with Nix (Flakes) and VSCode support

    Project mention: Automate Project Environments with Devbox and Direnv | news.ycombinator.com | 2024-07-10

    https://nixos.asia/en/direnv

    But if you are comfortable with Nix you don't need Devbox per se, as you can get by with using Flakes. Here are some examples -- just `git clone` and run `direnv allow` (once), then you are put in the corresponding devShell

    Haskell: https://github.com/srid/haskell-template

    Rust: https://github.com/srid/rust-nix-template

    home-manager: https://github.com/juspay/nix-dev-home

    Dioxus: https://github.com/srid/dioxus-desktop-template

  11. nix-cargo-integration

    Library to easily and effortlessly integrate Cargo projects with Nix.

  12. nocargo

    [alpha] Build Rust crates with Nix Build System.

  13. kernel-module-flake

    Nix flake for linux kernel module development with rust support

  14. boulette

    A terminal confirmation prompt that prevents you from accidentally damaging remote hosts.

    Project mention: Boulette: Protect you from yourself (even as root) | news.ycombinator.com | 2025-01-10
  15. nix-flake-templates

    Collection of templates for flake based projects.

  16. dotfiles

    Yash's dotfiiles(configuration files for nixos and linux) (by txtyash)

  17. napali

    Optimization as a service TUI

  18. lime

    ๐Ÿงถ no bs url shortening (by Fuwn)

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Nix Rust discussion

Log in or Post with

Nix Rust related posts

  • The abysmal state of GNU/Linux and a case against shared object libraries

    3 projects | news.ycombinator.com | 14 Oct 2024
  • Alejandra: The Uncompromising Nix Code Formatter

    1 project | news.ycombinator.com | 19 Sep 2024
  • Embrace the Power of Nix for Your Python + Rust Workflow

    2 projects | dev.to | 24 Jul 2024
  • Automate Project Environments with Devbox and Direnv

    8 projects | news.ycombinator.com | 10 Jul 2024
  • NixOS: Declarative Builds and Deployments

    13 projects | news.ycombinator.com | 14 Jan 2024
  • Understanding Overlays and direnv nix shell inheritance

    1 project | /r/NixOS | 26 Nov 2023
  • Use nix-shell or systemPackages

    2 projects | /r/NixOS | 9 Jul 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 21 Jan 2025
    SaaSHub helps you find the best software and product alternatives Learn more โ†’

Index

What are some of the best open-source Rust projects in Nix? This list will help you:

# Project Stars
1 dream2nix 1,067
2 rust-overlay 1,000
3 crane 999
4 alejandra 955
5 fenix 742
6 cargo2nix 397
7 crate2nix 393
8 rnix-parser 370
9 rust-nix-template 210
10 nix-cargo-integration 192
11 nocargo 154
12 kernel-module-flake 135
13 boulette 124
14 nix-flake-templates 13
15 dotfiles 11
16 napali 10
17 lime 4

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

Did you know that Nix is
the 28th most popular programming language
based on number of references?