-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathflake.nix
32 lines (30 loc) · 899 Bytes
/
flake.nix
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
31
32
{
description = "A Rust implementation of the V5 Serial Protocol";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
systems.url = "github:nix-systems/default-linux";
rust-overlay.url = "github:oxalica/rust-overlay";
};
outputs = { nixpkgs, systems, rust-overlay, ... }:
let eachSystem = nixpkgs.lib.genAttrs (import systems);
in {
devShells = eachSystem (system:
let
pkgs = import nixpkgs {
overlays = [ (import rust-overlay) ];
inherit system;
};
in {
default = pkgs.mkShell {
buildInputs = with pkgs; [
(rust-bin.nightly.latest.default.override {
extensions = [ "rust-analyzer" "rust-src" "clippy" ];
})
pkg-config
dbus
udev
];
};
});
};
}