mirror of
https://github.com/Swatinem/rust-cache.git
synced 2025-12-16 14:39:41 +00:00
32 lines
786 B
Nix
32 lines
786 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
|
|
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 = [
|
|
autoconf
|
|
gcc
|
|
gnumake
|
|
openssl
|
|
pkg-config
|
|
rust-bin.stable.latest.minimal
|
|
];
|
|
CARGO_TERM_COLOR = "always";
|
|
};
|
|
}
|
|
);
|
|
}
|
|
|