-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflake.nix
More file actions
30 lines (28 loc) · 810 Bytes
/
flake.nix
File metadata and controls
30 lines (28 loc) · 810 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
inputs = {
utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
rust-overlay.url = "github:oxalica/rust-overlay";
};
outputs =
inputs: inputs.utils.lib.eachDefaultSystem (
system: let
pkgs = inputs.nixpkgs.legacyPackages.${system}.extend inputs.rust-overlay.overlays.default;
rust = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
in {
devShell = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
rust
] ++ lib.optionals pkgs.stdenv.isLinux [
pkg-config
];
buildInputs = with pkgs; [] ++ lib.optionals pkgs.stdenv.isLinux [
alsa-lib
];
packages = [
pkgs.cargo-expand
];
};
}
);
}