Skip to content

Commit

Permalink
feat: add keymap-drawer to flake outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
MattSturgeon committed Mar 26, 2024
1 parent e878976 commit 4ec1e0a
Show file tree
Hide file tree
Showing 3 changed files with 167 additions and 1 deletion.
24 changes: 24 additions & 0 deletions drawer/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
inputs,
lib,
...
}: let
in {
perSystem = {
pkgs,
system,
...
}: let
inherit (inputs.poetry2nix.lib.mkPoetry2Nix {inherit pkgs;}) mkPoetryApplication;
in {
packages = {
keymap-drawer = mkPoetryApplication {
projectDir = inputs.keymap-drawer;
preferWheels = true;
meta = {
mainProgram = "keymap";
homepage = "https://github.com/caksoylar/keymap-drawer";
};
};
};
}
133 changes: 132 additions & 1 deletion flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
url = "github:moergo-sc/zmk";
flake = false;
};
keymap-drawer = {
url = "github:caksoylar/keymap-drawer";
flake = false;
};
poetry2nix = {
url = "github:nix-community/poetry2nix";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
Expand All @@ -19,13 +27,16 @@
self,
nixpkgs,
glove80-zmk,
keymap-drawer,
poetry2nix,
flake-parts,
devshell,
} @ inputs:
flake-parts.lib.mkFlake {inherit inputs;} {
systems = nixpkgs.lib.systems.flakeExposed;
imports = [
inputs.devshell.flakeModule
./drawer
];

perSystem = {
Expand Down

0 comments on commit 4ec1e0a

Please sign in to comment.