nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 50 lines 982 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 python3Packages, 5 wrapQtAppsHook, 6}: 7 8python3Packages.buildPythonApplication rec { 9 pname = "rmview"; 10 version = "3.1.3"; 11 pyproject = true; 12 13 src = fetchFromGitHub { 14 owner = "bordaigorl"; 15 repo = pname; 16 tag = "v${version}"; 17 sha256 = "sha256-V26zmu8cQkLs0IMR7eFO8x34McnT3xYyzlZfntApYkk="; 18 }; 19 20 nativeBuildInputs = with python3Packages; [ 21 pyqt5 22 setuptools 23 wrapQtAppsHook 24 ]; 25 propagatedBuildInputs = with python3Packages; [ 26 pyqt5 27 paramiko 28 twisted 29 pyjwt 30 pyopenssl 31 service-identity 32 sshtunnel 33 ]; 34 35 preBuild = '' 36 pyrcc5 -o src/rmview/resources.py resources.qrc 37 ''; 38 39 preFixup = '' 40 makeWrapperArgs+=("''${qtWrapperArgs[@]}") 41 ''; 42 43 meta = with lib; { 44 description = "Fast live viewer for reMarkable 1 and 2"; 45 mainProgram = "rmview"; 46 homepage = "https://github.com/bordaigorl/rmview"; 47 license = licenses.gpl3Only; 48 maintainers = [ maintainers.nickhu ]; 49 }; 50}