mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 04:33:57 +00:00
5f6d409060
* rmview: init at 2.1 * Update pkgs/applications/misc/remarkable/rmview/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> * correct license * Update pkgs/applications/misc/remarkable/rmview/default.nix Co-authored-by: Ben Siraphob <bensiraphob@gmail.com> * Update pkgs/applications/misc/remarkable/rmview/default.nix Co-authored-by: Ben Siraphob <bensiraphob@gmail.com> Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Co-authored-by: Ben Siraphob <bensiraphob@gmail.com>
32 lines
819 B
Nix
32 lines
819 B
Nix
{ stdenv, lib, fetchFromGitHub, python3Packages, wrapQtAppsHook }:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "rmview";
|
|
version = "2.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bordaigorl";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0zyngirpg808k1pkyhrk43qr3i8ilvfci0wzwk4b5f6f9cmjs7kb";
|
|
};
|
|
|
|
nativeBuildInputs = with python3Packages; [ pyqt5 wrapQtAppsHook ];
|
|
propagatedBuildInputs = with python3Packages; [ pyqt5 paramiko twisted ];
|
|
|
|
preBuild = ''
|
|
pyrcc5 -o src/rmview/resources.py resources.qrc
|
|
'';
|
|
|
|
preFixup = ''
|
|
wrapQtApp "$out/bin/rmview"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Fast live viewer for reMarkable 1 and 2";
|
|
homepage = "https://github.com/bordaigorl/rmview";
|
|
license = licenses.gpl3Only;
|
|
maintainers = [ maintainers.nickhu ];
|
|
};
|
|
}
|