42311bf679
Some checks are pending
CI / Build (push) Waiting to run
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
62 lines
1.4 KiB
Nix
62 lines
1.4 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
|
|
zmk-nix = {
|
|
url = "github:lilyinstarlight/zmk-nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs =
|
|
{
|
|
self,
|
|
nixpkgs,
|
|
zmk-nix,
|
|
}:
|
|
let
|
|
forAllSystems = nixpkgs.lib.genAttrs (nixpkgs.lib.attrNames zmk-nix.packages);
|
|
in
|
|
{
|
|
packages = forAllSystems (system: rec {
|
|
default = firmware;
|
|
|
|
firmware = zmk-nix.legacyPackages.${system}.buildSplitKeyboard {
|
|
name = "firmware";
|
|
|
|
src = nixpkgs.lib.sourceFilesBySuffices self [
|
|
".board"
|
|
".cmake"
|
|
".conf"
|
|
".defconfig"
|
|
".dts"
|
|
".dtsi"
|
|
".json"
|
|
".keymap"
|
|
".overlay"
|
|
".shield"
|
|
".yml"
|
|
"_defconfig"
|
|
];
|
|
|
|
board = "nice_nano_v2";
|
|
shield = "corne_%PART%";
|
|
|
|
zephyrDepsHash = "sha256-h2Gnbm6T581oSwTKmfXVb8fHXDz5WpF7CtJDh/gXGT0=";
|
|
|
|
meta = {
|
|
description = "ZMK firmware";
|
|
license = nixpkgs.lib.licenses.mit;
|
|
platforms = nixpkgs.lib.platforms.all;
|
|
};
|
|
};
|
|
|
|
flash = zmk-nix.packages.${system}.flash.override { inherit firmware; };
|
|
update = zmk-nix.packages.${system}.update;
|
|
});
|
|
|
|
devShells = forAllSystems (system: {
|
|
default = zmk-nix.devShells.${system}.default;
|
|
});
|
|
};
|
|
}
|