forked from edygar/chocofi-zmk-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
37 lines (30 loc) · 969 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
33
34
35
36
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
# Version of requirements.txt installed in pythonEnv
zephyr.url = "github:zephyrproject-rtos/zephyr/v3.5.0";
zephyr.flake = false;
# Zephyr sdk and toolchain
zephyr-nix.url = "github:urob/zephyr-nix";
zephyr-nix.inputs.zephyr.follows = "zephyr";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { nixpkgs, zephyr-nix, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
zephyr = zephyr-nix.packages.${system};
in {
devShells.default = pkgs.mkShell {
packages = [
zephyr.pythonEnv
(zephyr.sdk.override { targets = [ "arm-zephyr-eabi" ]; })
pkgs.cmake
pkgs.dtc
pkgs.ninja
pkgs.qemu # needed for native_posix target
pkgs.just
];
};
});
}