lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

scrcpy: init at v1.2

+56
+52
pkgs/misc/scrcpy/default.nix
··· 1 + { stdenv, fetchurl, fetchFromGitHub, makeWrapper 2 + , meson 3 + , ninja 4 + , pkgconfig 5 + 6 + , platformTools 7 + , ffmpeg 8 + , SDL2 9 + }: 10 + 11 + let 12 + version = "1.2"; 13 + prebuilt_server = fetchurl { 14 + url = "https://github.com/Genymobile/scrcpy/releases/download/v${version}/scrcpy-server-v${version}.jar"; 15 + sha256 = "0q0zyqw7y33r9ybjp8ay6yac7ifca1lq14pjvw6x78zxs976affb"; 16 + }; 17 + in 18 + stdenv.mkDerivation rec { 19 + name = "scrcpy-${version}"; 20 + inherit version; 21 + src = fetchFromGitHub { 22 + owner = "Genymobile"; 23 + repo = "scrcpy"; 24 + rev = "v${version}"; 25 + sha256 = "01zw6h6mz2cwqfh9lwypm8pbfx9m9df91l1fq1i0f1d8v49x8wqc"; 26 + }; 27 + 28 + nativeBuildInputs = [ makeWrapper meson ninja pkgconfig ]; 29 + 30 + buildInputs = [ ffmpeg SDL2 ]; 31 + 32 + # Manually install the server jar to prevent Meson from "fixing" it 33 + preConfigure = '' 34 + echo -n > server/meson.build 35 + ''; 36 + 37 + postInstall = '' 38 + mkdir -p "$out/share/scrcpy" 39 + ln -s "${prebuilt_server}" "$out/share/scrcpy/scrcpy-server.jar" 40 + 41 + # runtime dep on `adb` to push the server 42 + wrapProgram "$out/bin/scrcpy" --prefix PATH : "${platformTools}/bin" 43 + ''; 44 + 45 + meta = with stdenv.lib; { 46 + description = "Display and control Android devices over USB or TCP/IP"; 47 + homepage = https://github.com/Genymobile/scrcpy; 48 + license = licenses.asl20; 49 + platforms = platforms.unix; 50 + maintainers = with maintainers; [ deltaevo lukeadams ]; 51 + }; 52 + }
+4
pkgs/top-level/all-packages.nix
··· 5012 5012 inherit (darwin.apple_sdk.libs) utmp; 5013 5013 }; 5014 5014 5015 + scrcpy = callPackage ../misc/scrcpy { 5016 + inherit (androidenv) platformTools; 5017 + }; 5018 + 5015 5019 screen-message = callPackage ../tools/X11/screen-message { }; 5016 5020 5017 5021 screencloud = callPackage ../applications/graphics/screencloud {