Initial commit

This commit is contained in:
Florian RICHER 2025-04-19 18:37:52 +02:00
commit 8ce7c1a8a5
Signed by: florian.richer
GPG key ID: C73D37CBED7BFC77
9 changed files with 141 additions and 0 deletions

31
flake.nix Normal file
View file

@ -0,0 +1,31 @@
{
description = "Rust ASH test rust configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, flake-utils, rust-overlay }:
flake-utils.lib.eachSystem flake-utils.lib.allSystems (system:
let
overlays = [ (import rust-overlay) ];
pkgs = import nixpkgs {
inherit system overlays;
};
rust = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
in
{
devShells = {
default = pkgs.mkShell {
nativeBuildInputs = [
(rust.override { extensions = [ "rust-src" "rust-analyzer" ]; })
];
};
};
});
}