2023-10-09 16:54:34 +02:00
|
|
|
{
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
rust-overlay.url = "github:oxalica/rust-overlay";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs, rust-overlay, }:
|
|
|
|
let
|
|
|
|
system = "x86_64-linux";
|
2023-10-09 19:05:37 +02:00
|
|
|
rustVersion = "1.73.0";
|
2023-10-09 18:34:43 +02:00
|
|
|
rust = pkgs.rust-bin.stable.${rustVersion}.default.override {
|
|
|
|
extensions = [
|
|
|
|
"rust-src" # for rust-analyzer
|
|
|
|
];
|
|
|
|
};
|
2023-10-09 16:54:34 +02:00
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
overlays = [ rust-overlay.overlays.default ];
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
devShells.${system}.default = pkgs.mkShell {
|
2023-10-09 19:05:37 +02:00
|
|
|
buildInputs = [ rust ]
|
2023-10-09 19:07:20 +02:00
|
|
|
++ (with pkgs; [ rust-analyzer pkg-config pulseaudio alsa-lib dbus ]);
|
2023-10-09 18:34:43 +02:00
|
|
|
RUST_BACKTRACE = 1;
|
2023-10-09 16:54:34 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|