added rust flake
This commit is contained in:
parent
14071f8b05
commit
acecb22e6a
3 changed files with 26 additions and 0 deletions
|
@ -11,5 +11,10 @@
|
|||
path = ./fhs;
|
||||
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
1
rust/.envrc
Normal file
|
@ -0,0 +1 @@
|
|||
use flake
|
20
rust/flake.nix
Normal file
20
rust/flake.nix
Normal 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 = [ ];
|
||||
};
|
||||
});
|
||||
}
|
Loading…
Add table
Reference in a new issue