keyboard in random pkgs

This commit is contained in:
Sebastian Moser
2024-07-22 19:41:41 +02:00
parent 27c5e72cba
commit 1e1786d030

View File

@@ -5,7 +5,9 @@
pkgs = import nixpkgs { inherit system; }; pkgs = import nixpkgs { inherit system; };
in rec { in rec {
zephyr = inputs.zephyr-nix.packages.${system}; zephyr = inputs.zephyr-nix.packages.${system};
one = inputs.zephyr-nix; one = inputs.zephyr-nix;
two-shell = pkgs.mkShell { two-shell = pkgs.mkShell {
packages = with pkgs; [ packages = with pkgs; [
(zephyr.sdk.override { (zephyr.sdk.override {
@@ -25,19 +27,39 @@ in rec {
export ZEPHYR_BASE=${inputs.zephyr-nix.inputs.zephyr}; export ZEPHYR_BASE=${inputs.zephyr-nix.inputs.zephyr};
''; '';
}; };
three = inputs.zmk-nix.legacyPackages.${system}.fetchZephyrDeps {}; three = inputs.zmk-nix.legacyPackages.${system}.fetchZephyrDeps {
name = "testing-deps";
hash = "";
src = self;
};
four = inputs.zephyr-nix.packages.${system}.buildZephyrWorkspace;
keyboard = inputs.zmk-nix.legacyPackages.${system}.buildKeyboard { keyboardRight = inputs.zmk-nix.legacyPackages.${system}.buildKeyboard {
name = "firmware"; name = "firmware-right";
src = inputs.keyboard-config; src = ./zmk-config;
board = "nice_nano_v2"; board = "nice_nano_v2";
# the charybdis has a left and right, so the default parts works # the charybdis has a left and right, so the default parts works
shield = "charybdis_%PART%"; shield = "charybdis_right";
zephyrDepsHash = "sha256-n7xX/d8RLqDyPOX4AEo5hl/3tQtY6mZ6s8emYYtOYOg="; #zephyrDepsHash = "sha256-n7xX/d8RLqDyPOX4AEo5hl/3tQtY6mZ6s8emYYtOYOg=";
zephyrDepsHash = "sha256-ra+uyEuneWoP1qkMUyhlLtq1rdWifsioqHnODqZC36o=";
};
keyboardLeft = inputs.zmk-nix.legacyPackages.${system}.buildKeyboard {
name = "firmware-left";
src = ./zmk-config;
board = "nice_nano_v2";
# the charybdis has a left and right, so the default parts works
shield = "charybdis_left";
#zephyrDepsHash = "sha256-n7xX/d8RLqDyPOX4AEo5hl/3tQtY6mZ6s8emYYtOYOg=";
zephyrDepsHash = "sha256-ra+uyEuneWoP1qkMUyhlLtq1rdWifsioqHnODqZC36o=";
}; };
usbip-kernel = self.nixosConfigurations.main.config.system.build.kernel.overrideAttrs (prev: { usbip-kernel = self.nixosConfigurations.main.config.system.build.kernel.overrideAttrs (prev: {