nix/flakes/rust.nix

14 lines
382 B
Nix
Raw Normal View History

2024-04-23 22:00:39 +00:00
{
description = "A simple rust environment";
inputs = { nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; };
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in {
devShells.${system}.default = pkgs.mkShell {
packages = [ pkgs.rustc pkgs.cargo pkgs.rust-analyzer ];
};
};
}