feat(shells): Test
This commit is contained in:
parent
b819c45b4c
commit
b4fd8f2dbf
5 changed files with 163 additions and 0 deletions
24
nixos/shells/rust/default.nix
Normal file
24
nixos/shells/rust/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
description = "Rust Flake";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
||||
outputs = { self, flake-utils, nixpkgs }: flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
};
|
||||
in {
|
||||
devShells.default = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
cargo
|
||||
rustc
|
||||
];
|
||||
shellHook = ''
|
||||
'';
|
||||
};
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue