14 lines
382 B
Nix
14 lines
382 B
Nix
{
|
|
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 ];
|
|
};
|
|
};
|
|
}
|