nixpkgs/pkgs/applications/misc/remarkable/rmview/default.nix
Nick Hu 5f6d409060
rmview: init at 2.1 (#108798)
* 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>
2021-01-18 16:03:10 +00:00

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 ];
};
}