scrcpy: 1.19 -> 1.20

This commit is contained in:
Harsh Shandilya 2021-11-14 17:24:55 +05:30
parent 05abd836d2
commit 9c83343bb8
No known key found for this signature in database
GPG Key ID: 366D7BBAD1031E80

View File

@ -6,14 +6,15 @@
, platform-tools
, ffmpeg
, libusb1
, SDL2
}:
let
version = "1.19";
version = "1.20";
prebuilt_server = fetchurl {
url = "https://github.com/Genymobile/scrcpy/releases/download/v${version}/scrcpy-server-v${version}";
sha256 = "sha256-h2+TIhguaqxqWNsTNPQiWFXvOhfq68gKq2YB2dHsuGc=";
sha256 = "sha256-sgruSVH5mwYMSkQAC6lN6XP5YEdY72K+slOzcarT3zQ=";
};
in
stdenv.mkDerivation rec {
@ -24,7 +25,7 @@ stdenv.mkDerivation rec {
owner = "Genymobile";
repo = pname;
rev = "v${version}";
sha256 = "sha256-IR4FTbVtHp9rRm0U4d1zkl0u+oR5FeElJ91NIspSKWg=";
sha256 = "sha256-yj/hpndVC1oInrYmCSKQix1kNWy/GpAlmO/6o3vvQQE=";
};
# postPatch:
@ -38,7 +39,9 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ makeWrapper meson ninja pkg-config ];
buildInputs = [ ffmpeg SDL2 ];
buildInputs = [ ffmpeg SDL2 ] ++ lib.optionals stdenv.isLinux [
libusb1
];
# Manually install the server jar to prevent Meson from "fixing" it
preConfigure = ''