Merge pull request #207242 from msfjarvis/scrcpy-1.25

scrcpy: 1.24 -> 1.25
This commit is contained in:
markuskowa
2022-12-26 22:18:58 +01:00
committed by GitHub
+7 -3
View File
@@ -2,6 +2,7 @@
, meson
, ninja
, pkg-config
, runtimeShell
, installShellFiles
, platform-tools
@@ -11,10 +12,10 @@
}:
let
version = "1.24";
version = "1.25";
prebuilt_server = fetchurl {
url = "https://github.com/Genymobile/scrcpy/releases/download/v${version}/scrcpy-server-v${version}";
sha256 = "sha256-rnSoHqecDcclDlhmJ8J4wKmoxd5GyftcOMFn+xo28FY=";
sha256 = "sha256-zgMGx7vQaucvbQb37A7jN3SZWmXeceCoOBPstnrsm9s=";
};
in
stdenv.mkDerivation rec {
@@ -25,7 +26,7 @@ stdenv.mkDerivation rec {
owner = "Genymobile";
repo = pname;
rev = "v${version}";
sha256 = "sha256-mL0lSZUPMMcLGq4iPp/IgYZLaTeey9Nv9vVwY1gaIRk=";
sha256 = "sha256-4U/ChooesjhZSvxvk9dZrpZ/X0lf62+LEn72Ubrm2eM=";
};
# postPatch:
@@ -52,6 +53,9 @@ stdenv.mkDerivation rec {
# runtime dep on `adb` to push the server
wrapProgram "$out/bin/scrcpy" --prefix PATH : "${platform-tools}/bin"
'' + lib.optionalString stdenv.isLinux ''
substituteInPlace $out/share/applications/scrcpy-console.desktop \
--replace "/bin/bash" "${runtimeShell}"
'';
meta = with lib; {