Add keymap-drawer to shell.nix

This commit is contained in:
2024-12-07 00:05:56 +01:00
parent be5320cc44
commit 657cc19ea4
2 changed files with 54 additions and 13 deletions

42
draw/default.nix Normal file
View File

@@ -0,0 +1,42 @@
{
lib,
buildPythonApplication,
fetchPypi,
poetry-core,
pydantic,
pcpp,
pyparsing,
pyyaml,
platformdirs,
pydantic-settings,
}:
buildPythonApplication rec {
pname = "keymap-drawer";
version = "0.18.1";
pyproject = true;
src = fetchPypi {
pname = "keymap_drawer";
inherit version;
hash = "sha256-MHjxsopXoYWZFuXUbeaI7BCSx3HkRaeVidY+mc8lj+s=";
};
build-system = [poetry-core];
propagatedBuildInputs = [
pydantic
pcpp
pyparsing
pyyaml
platformdirs
pydantic-settings
];
doCheck = false;
meta = {
homepage = "https://github.com/caksoylar/keymap-drawer";
description = "Parse QMK & ZMK keymaps and draw them as vector graphics";
license = lib.licenses.mit;
};
}

View File

@@ -1,13 +1,12 @@
{pkgs ? import <nixpkgs> {}}:
pkgs.mkShell {
packages = with pkgs; [
kicad
nodejs
freecad-wayland
blender
python3Packages.pip
# python312Packages.west
# cmake
# ninja
];
}
{pkgs ? import <nixpkgs> {}}: let
keymap-drawer =
pkgs.python3Packages.callPackage ./draw {};
in
pkgs.mkShell {
packages = with pkgs; [
kicad
nodejs
freecad-wayland
keymap-drawer
];
}