This commit is contained in:
Charlotte 🦝 Delenk 2022-10-04 17:47:26 +01:00
parent 2e98ade2c1
commit 9c54fece91
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
2 changed files with 21 additions and 4 deletions

View file

@ -11,7 +11,7 @@
source = builtins.fromJSON (builtins.readFile ./plover-machine-hid.json);
in
buildPythonPackage rec {
pname = "plover-machine-hid";
pname = "plover_machine_hid";
version = source.date;
src = fetchFromGitHub {
owner = "dnaq";

View file

@ -1,10 +1,17 @@
{
callPackage,
fetchFromGitea,
buildPythonPackage,
fetchFromGitHub,
lib,
pythonOlder,
hid,
bitstring,
}: let
plover = callPackage ./plover {};
source = builtins.fromJSON (builtins.readFile ./plover-rkb1-hid.json);
in
(callPackage ./plover-machine-hid.nix {}).overrideAttrs (_: {
buildPythonPackage rec {
pname = "plover_machine_hid";
version = source.date;
src = fetchFromGitea {
domain = "git.chir.rs";
@ -12,5 +19,15 @@ in
repo = "plover-machine-hid";
inherit (source) rev sha256;
};
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;
};
passthru.updateScript = [../scripts/update-git.sh "https://git.chir.rs/darkkirb/plover-machine-hid" "plover/plover-rkb1-hid.json"];
})
}