36 lines
981 B
Nix
36 lines
981 B
Nix
{
|
|
description = "Rust ASH test rust configuration";
|
|
|
|
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 = { self, nixpkgs, flake-utils, rust-overlay }:
|
|
flake-utils.lib.eachSystem flake-utils.lib.allSystems (system:
|
|
let
|
|
overlays = [ (import rust-overlay) ];
|
|
pkgs = import nixpkgs {
|
|
inherit system overlays;
|
|
};
|
|
rust = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
|
|
|
|
nativeBuildInputs = with pkgs; [
|
|
pkg-config
|
|
dbus
|
|
];
|
|
in
|
|
{
|
|
devShells = {
|
|
default = pkgs.mkShell {
|
|
nativeBuildInputs = nativeBuildInputs ++ [
|
|
(rust.override { extensions = [ "rust-src" "rust-analyzer" ]; })
|
|
];
|
|
};
|
|
};
|
|
});
|
|
}
|