32 lines
723 B
Nix
32 lines
723 B
Nix
|
{
|
||
|
inputs = {
|
||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||
|
flake-utils.url = "github:numtide/flake-utils";
|
||
|
rust-overlay.url = "github:oxalica/rust-overlay";
|
||
|
};
|
||
|
|
||
|
outputs =
|
||
|
{ self
|
||
|
, nixpkgs
|
||
|
, flake-utils
|
||
|
, rust-overlay
|
||
|
}:
|
||
|
flake-utils.lib.eachDefaultSystem (system:
|
||
|
let
|
||
|
overlays = [ (import rust-overlay) ];
|
||
|
pkgs = import nixpkgs { inherit system overlays; };
|
||
|
in
|
||
|
{
|
||
|
devShell = pkgs.mkShell {
|
||
|
nativeBuildInputs = [ ];
|
||
|
buildInputs = [
|
||
|
pkgs.rust-bin.stable.latest.default
|
||
|
];
|
||
|
packages = with pkgs; [
|
||
|
rust-analyzer
|
||
|
];
|
||
|
RUST_SRC_PATH = pkgs.rustPlatform.rustLibSrc;
|
||
|
};
|
||
|
});
|
||
|
}
|