initial commit
This commit is contained in:
commit
8227244e06
6 changed files with 416 additions and 0 deletions
35
flake.nix
Normal file
35
flake.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
description = "QMK firmware builder for my keyboard";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
nixcaps.url = "github:agustinmista/nixcaps/main";
|
||||
};
|
||||
|
||||
outputs =
|
||||
{
|
||||
nixpkgs,
|
||||
flake-utils,
|
||||
nixcaps,
|
||||
...
|
||||
}:
|
||||
flake-utils.lib.eachDefaultSystem (
|
||||
system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
compile = nixcaps.packages.${system}.compile;
|
||||
in
|
||||
{
|
||||
packages.default = compile {
|
||||
keyboard = "keebio/iris";
|
||||
variant = "rev6";
|
||||
src = ./.;
|
||||
flash = fw: ''
|
||||
echo "Flashing ${fw}.hex ..."
|
||||
${pkgs.teensy-loader-cli}/bin/teensy-loader-cli -mmcu=atmega32u4 -v -w ${fw}.hex
|
||||
'';
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue