add plover and plover-plugins-manager
This commit is contained in:
parent
d19810aec8
commit
47c9b99394
3 changed files with 59 additions and 1 deletions
19
flake.lock
19
flake.lock
|
@ -193,6 +193,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"plover": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1652639506,
|
||||||
|
"narHash": "sha256-2sS5jnpIHV2j23vDMS4ka2neRTcEyLH+zs7Og+Ysjvg=",
|
||||||
|
"owner": "openstenoproject",
|
||||||
|
"repo": "plover",
|
||||||
|
"rev": "486a032f7bd50d1df3ddff47f407e77a4cfe0bc6",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "openstenoproject",
|
||||||
|
"repo": "plover",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"clean-s3-cache": "clean-s3-cache",
|
"clean-s3-cache": "clean-s3-cache",
|
||||||
|
@ -205,7 +221,8 @@
|
||||||
"miifox-net": "miifox-net",
|
"miifox-net": "miifox-net",
|
||||||
"nasin-nanpa": "nasin-nanpa",
|
"nasin-nanpa": "nasin-nanpa",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": "nixpkgs_2",
|
||||||
"nixpkgs-go116": "nixpkgs-go116"
|
"nixpkgs-go116": "nixpkgs-go116",
|
||||||
|
"plover": "plover"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"utils": {
|
"utils": {
|
||||||
|
|
|
@ -22,6 +22,8 @@
|
||||||
kreative-open-relay.flake = false;
|
kreative-open-relay.flake = false;
|
||||||
nasin-nanpa.url = "github:ETBCOR/nasin-nanpa";
|
nasin-nanpa.url = "github:ETBCOR/nasin-nanpa";
|
||||||
nasin-nanpa.flake = false;
|
nasin-nanpa.flake = false;
|
||||||
|
plover.url = "github:openstenoproject/plover";
|
||||||
|
plover.flake = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = {
|
outputs = {
|
||||||
|
@ -52,6 +54,7 @@
|
||||||
./matrix/mautrix-whatsapp
|
./matrix/mautrix-whatsapp
|
||||||
./fonts/kreative.nix
|
./fonts/kreative.nix
|
||||||
./fonts/nasin-nanpa.nix
|
./fonts/nasin-nanpa.nix
|
||||||
|
./misc/plover.nix
|
||||||
]);
|
]);
|
||||||
|
|
||||||
hydraJobs = {
|
hydraJobs = {
|
||||||
|
|
38
misc/plover.nix
Normal file
38
misc/plover.nix
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
{
|
||||||
|
inputs,
|
||||||
|
pkgs,
|
||||||
|
}:
|
||||||
|
with pkgs; rec {
|
||||||
|
plover-plugins-manager = with python3Packages;
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "plover-plugins-manager";
|
||||||
|
version = "0.7.0";
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "benoit-pierre";
|
||||||
|
repo = "plover_plugins_manager";
|
||||||
|
rev = "0.7.0";
|
||||||
|
sha256 = "sha256-+ASEFxjIeqOwwIwojOltA4nAG/HMz+px+wMXuCOc+Dw=";
|
||||||
|
};
|
||||||
|
propagatedBuildInputs = [plover setuptools];
|
||||||
|
};
|
||||||
|
plover = with python3Packages;
|
||||||
|
qt5.mkDerivationWith buildPythonPackage rec {
|
||||||
|
pname = "plover";
|
||||||
|
version = inputs.plover.lastModifiedDate;
|
||||||
|
|
||||||
|
src = inputs.plover;
|
||||||
|
|
||||||
|
# I'm not sure why we don't find PyQt5 here but there's a similar
|
||||||
|
# sed on many of the platforms Plover builds for
|
||||||
|
postPatch = "sed -i /PyQt5/d setup.cfg";
|
||||||
|
|
||||||
|
checkInputs = [pytest mock];
|
||||||
|
propagatedBuildInputs = [babel pyqt5 xlib pyserial appdirs wcwidth setuptools];
|
||||||
|
|
||||||
|
dontWrapQtApps = true;
|
||||||
|
|
||||||
|
preFixup = ''
|
||||||
|
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
Reference in a new issue