added rust flake

This commit is contained in:
twoneis 2024-05-14 04:52:58 +02:00
parent 14071f8b05
commit acecb22e6a
3 changed files with 26 additions and 0 deletions

View file

@ -11,5 +11,10 @@
path = ./fhs; path = ./fhs;
description = "A simple flake but creating an fhs compliant environment"; description = "A simple flake but creating an fhs compliant environment";
}; };
rust = {
path = ./rust;
description = "A simple flake with an overlay for rust";
};
}; };
} }

1
rust/.envrc Normal file
View file

@ -0,0 +1 @@
use flake

20
rust/flake.nix Normal file
View file

@ -0,0 +1,20 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
rust-overlay.url = "github:oxalica/rust-overlay";
};
outputs = { nixpkgs, flake-utils, rust-overlay, ... }: flake-utils.lib.eachSystem [
"x86_64-linux" "i686-linux" "aarch64-linux" "x86_64-darwin"
] (system: let
pkgs = import nixpkgs {
overlays = [ rust-overlay.overlays.default ];
inherit system;
};
in {
devShells.default = pkgs.mkShell {
packages = [ ];
};
});
}