12345678910111213141516171819202122232425 |
- {
- inputs = {
- nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
- flake-utils.url = "github:numtide/flake-utils";
- };
- outputs = { self, nixpkgs, flake-utils, ... }:
- flake-utils.lib.eachDefaultSystem (system:
- let
- pkgs = import nixpkgs { inherit system; };
- in
- {
- devShell = pkgs.mkShell {
- packages = with pkgs; [
- cargo
- cargo-watch
- rustc
- rustfmt
- clippy
- rust-analyzer
- ];
- RUST_SRC_PATH = pkgs.rustPlatform.rustLibSrc;
- };
- });
- }
|