luiswirth / nix-cargo-template

Nix Flake Cargo Template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nix Cargo Template

This is a template repository to get you started with creating a rust application using nix flakes. The heart of this repository is the flake.nix file, which sets rust using nix flakes up.

The flake uses the oxalica/rust-overlay, which provides us with the different rust toolchain versions. The toolchain we want to use, is specified in the rust-toolchain.toml file, which you can edit to your requirements. The overlay then reads this toolchain file and gets the appropriate versions of the tools.

For this to work you need

About

Nix Flake Cargo Template


Languages

Language:Nix 93.6%Language:Rust 5.2%Language:Shell 1.2%