sonic-channel/flake.nix

26 lines
591 B
Nix
Raw Permalink Normal View History

2022-09-09 15:57:39 +03:00
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
2022-09-09 15:57:39 +03:00
};
2022-11-25 23:20:04 +03:00
outputs = { self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
2022-09-09 15:57:39 +03:00
let
2022-11-25 23:20:04 +03:00
pkgs = import nixpkgs { inherit system; };
2022-09-09 15:57:39 +03:00
in
{
devShell = pkgs.mkShell {
2022-11-25 23:20:04 +03:00
packages = with pkgs; [
cargo
cargo-watch
rustc
rustfmt
clippy
rust-analyzer
];
2022-09-09 15:57:39 +03:00
RUST_SRC_PATH = pkgs.rustPlatform.rustLibSrc;
};
});
}