mirror of
https://github.com/Swatinem/rust-cache.git
synced 2025-12-18 07:29:42 +00:00
24 lines
630 B
Nix
24 lines
630 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
rust-overlay = {
|
|
url = "github:oxalica/rust-overlay";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = inputs @ { self, nixpkgs, flake-utils, rust-overlay, ... }:
|
|
flake-utils.lib.eachDefaultSystem (
|
|
system: let
|
|
overlays = [ (import rust-overlay) ];
|
|
pkgs = import nixpkgs { inherit system overlays; };
|
|
in {
|
|
devShells.default = with pkgs; mkShell {
|
|
buildInputs = [ rust-bin.stable.latest.minimal ];
|
|
};
|
|
}
|
|
);
|
|
}
|
|
|