pls work
This commit is contained in:
parent
2e98ade2c1
commit
9c54fece91
2 changed files with 21 additions and 4 deletions
|
@ -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";
|
||||
|
|
|
@ -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"];
|
||||
})
|
||||
}
|
||||
|
|
Reference in a new issue