diff --git a/rust-project/flake.nix b/rust-project/flake.nix new file mode 100644 index 0000000..db1b961 --- /dev/null +++ b/rust-project/flake.nix @@ -0,0 +1,17 @@ +{ + description = "Basic Rust project"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; + }; + + outputs = { self, nixpkgs }: + let + system = "x86_64-linux"; + pkgs = import nixpkgs { inherit system; }; + in { + devShells.x86_64-linux.default = pkgs.mkShell { + packages = [ pkgs.rustup ]; + }; + }; +}