-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
flake.nix
52 lines (50 loc) · 1.2 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:StarGate01/nixpkgs/nrfconnect";
};
outputs = { self, nixpkgs }:
let
pkgs = import nixpkgs {
system = "x86_64-linux";
config.allowUnfree = true;
config.segger-jlink.acceptLicense = true;
};
in
{
devShell.x86_64-linux =
pkgs.mkShell {
shellHook = ''
export ARM_NONE_EABI_TOOLCHAIN_PATH="${pkgs.gcc-arm-embedded}"
export NRF5_SDK_PATH="${pkgs.nrf5-sdk}/share/nRF5_SDK"
'';
buildInputs = with pkgs; [
gcc-arm-embedded
nodePackages.lv_font_conv
lv_img_conv
cmake
openocd
segger-jlink
nrf-command-line-tools
mynewt-newt
nrf5-sdk
clang-tools
adafruit-nrfutil
itd
(python3.withPackages (ps: with ps; [
cbor
click
cryptography
numpy
pexpect
pillow
pydbus
pygobject3
pyserial
pysdl2
pytest
intelhex
]))
];
};
};
}