restream: init at 1.1 (#120596)

authored by

Phillip Cloud and committed by
GitHub
3e62e383 0c75a43d

+50
+48
pkgs/applications/misc/remarkable/restream/default.nix
···
··· 1 + { lib 2 + , bash 3 + , stdenv 4 + , lz4 5 + , ffmpeg-full 6 + , fetchFromGitHub 7 + , openssh 8 + , makeWrapper 9 + }: 10 + 11 + stdenv.mkDerivation rec { 12 + pname = "restream"; 13 + version = "1.1"; 14 + 15 + src = fetchFromGitHub { 16 + owner = "rien"; 17 + repo = pname; 18 + rev = version; 19 + sha256 = "18z17chl7r5dg12xmr3f9gbgv97nslm8nijigd03iysaj6dhymp3"; 20 + }; 21 + 22 + nativeBuildInputs = [ makeWrapper ]; 23 + 24 + dontConfigure = true; 25 + dontBuild = true; 26 + 27 + installPhase = '' 28 + runHook preInstall 29 + 30 + install -D ${src}/restream.arm.static $out/libexec/restream.arm.static 31 + install -D ${src}/reStream.sh $out/bin/restream 32 + 33 + runHook postInstall 34 + ''; 35 + 36 + postInstall = '' 37 + # `ffmpeg-full` is used here to bring in `ffplay`, which is used to display 38 + # the reMarkable framebuffer 39 + wrapProgram "$out/bin/restream" --suffix PATH ":" "${lib.makeBinPath [ ffmpeg-full lz4 openssh ]}" 40 + ''; 41 + 42 + meta = with lib; { 43 + description = "reMarkable screen sharing over SSH"; 44 + homepage = "https://github.com/rien/reStream"; 45 + license = licenses.mit; 46 + maintainers = [ maintainers.cpcloud ]; 47 + }; 48 + }
+2
pkgs/top-level/all-packages.nix
··· 3003 3004 remarkable-mouse = python3Packages.callPackage ../applications/misc/remarkable/remarkable-mouse { }; 3005 3006 ryujinx = callPackage ../misc/emulators/ryujinx { }; 3007 3008 scour = with python3Packages; toPythonApplication scour;
··· 3003 3004 remarkable-mouse = python3Packages.callPackage ../applications/misc/remarkable/remarkable-mouse { }; 3005 3006 + restream = callPackage ../applications/misc/remarkable/restream { }; 3007 + 3008 ryujinx = callPackage ../misc/emulators/ryujinx { }; 3009 3010 scour = with python3Packages; toPythonApplication scour;