mirror of
https://gitlab.com/ahoneybun/nix-configs.git
synced 2025-05-12 19:24:03 -06:00
add shell and flake for nix-shell or nix develop for Rust
This commit is contained in:
parent
3e5e41d028
commit
0db0890e15
3 changed files with 61 additions and 0 deletions
21
dev/rust/flake.nix
Normal file
21
dev/rust/flake.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
description = "A very basic flake";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs }:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages."x86_64-linux";
|
||||
in
|
||||
{
|
||||
|
||||
devShells."x86_64-linux".default = pkgs.mkShell {
|
||||
packages = with pkgs; [ cargo rustc ];
|
||||
};
|
||||
|
||||
RUST_BACKTRACE = 1;
|
||||
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue