This repository has been archived on 2024-10-13. You can view files and clone it, but cannot push or open issues or pull requests.
nix-packages/plover/plover-rkb1-hid.nix

31 lines
755 B
Nix
Raw Normal View History

2022-09-30 14:24:31 +00:00
{
callPackage,
2022-10-04 16:47:26 +00:00
buildPythonPackage,
2023-06-03 09:24:45 +00:00
fetchgit,
2022-10-04 16:47:26 +00:00
lib,
pythonOlder,
hid,
bitstring,
2022-09-30 14:24:31 +00:00
}: let
2022-10-04 16:47:26 +00:00
plover = callPackage ./plover {};
2022-09-30 14:24:31 +00:00
source = builtins.fromJSON (builtins.readFile ./plover-rkb1-hid.json);
2022-09-30 13:36:15 +00:00
in
2023-06-03 09:24:45 +00:00
buildPythonPackage {
2022-10-04 16:47:26 +00:00
pname = "plover_machine_hid";
2022-09-30 14:24:31 +00:00
version = source.date;
2023-06-03 09:24:45 +00:00
src = fetchgit {
inherit (source) rev sha256 url;
2022-09-30 14:24:31 +00:00
};
2022-10-06 19:40:53 +00:00
2022-10-04 16:47:26 +00:00
doCheck = false;
disabled = pythonOlder "3.6";
propagatedBuildInputs = [plover hid bitstring];
meta = with lib; {
description = "POC Plover plugin and firmware for the Plover HID protocol";
license = licenses.mit;
};
2022-09-30 14:24:31 +00:00
passthru.updateScript = [../scripts/update-git.sh "https://git.chir.rs/darkkirb/plover-machine-hid" "plover/plover-rkb1-hid.json"];
2022-10-04 16:47:26 +00:00
}