-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
52 lines (49 loc) · 1.44 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
nixpkgs-esp-dev.url = "github:mirrexagon/nixpkgs-esp-dev";
};
outputs = { self, flake-compat, nixpkgs, flake-utils, nixpkgs-esp-dev, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
overlays = [ nixpkgs-esp-dev.overlay ];
pkgs = import nixpkgs {
inherit system overlays;
};
in {
devShell = pkgs.mkShell rec {
LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib";
buildInputs = with pkgs; [
rustup
rust-analyzer
cargo-generate
cargo-espflash
cargo-espmonitor
# slint dependencies
cmake
pkg-config
fontconfig
xorg.libxcb
wayland
libxkbcommon
libGL
# esp-idf-sys dependencies:
cmake
ninja
python3Packages.python
python3Packages.pip
python3Packages.virtualenv
(gcc-riscv32-esp32c3-elf-bin.override {
version = "2021r2-patch5";
hash = "sha256-99c+X54t8+psqOLJXWym0j1rOP0QHqXTAS88s81Z858=";
})
];
LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath buildInputs}";
};
});
}