scrcpy: 1.8 -> 1.10
This commit is contained in:
parent
19081d4b23
commit
e5d8f76616
@ -2,6 +2,7 @@
|
|||||||
, meson
|
, meson
|
||||||
, ninja
|
, ninja
|
||||||
, pkgconfig
|
, pkgconfig
|
||||||
|
, fetchpatch
|
||||||
|
|
||||||
, platform-tools
|
, platform-tools
|
||||||
, ffmpeg
|
, ffmpeg
|
||||||
@ -9,10 +10,10 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "1.8";
|
version = "1.10";
|
||||||
prebuilt_server = fetchurl {
|
prebuilt_server = fetchurl {
|
||||||
url = "https://github.com/Genymobile/scrcpy/releases/download/v${version}/scrcpy-server-v${version}.jar";
|
url = "https://github.com/Genymobile/scrcpy/releases/download/v${version}/scrcpy-server-v${version}.jar";
|
||||||
sha256 = "1h755k5xpchlm7wq2yk5mlwjnh7y4yhviffixacby0srj3pmb443";
|
sha256 = "144k25x6ha89l9p5a1dm6r3fqvgqszzwrhvkvk0r44vg0i71msyb";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -23,7 +24,7 @@ stdenv.mkDerivation rec {
|
|||||||
owner = "Genymobile";
|
owner = "Genymobile";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1cx7y3w699s3i8s53l1mb7lkrnbix457hf17liwh00jzb0i7aga7";
|
sha256 = "0hhncqcs49n9g8sgvwbyvkaq4b1dhrpn7qgnaj6grjcb0i27vzaq";
|
||||||
};
|
};
|
||||||
|
|
||||||
# postPatch:
|
# postPatch:
|
||||||
@ -39,6 +40,12 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [ ffmpeg SDL2 ];
|
buildInputs = [ ffmpeg SDL2 ];
|
||||||
|
|
||||||
|
# FIXME: remove on update to > 1.10
|
||||||
|
patches = [(fetchpatch {
|
||||||
|
url = "https://github.com/Genymobile/scrcpy/commit/c05056343b56be65ae887f8b7ead61a8072622b9.diff";
|
||||||
|
sha256 = "1xh24gr2g2i9rk0zyv19jx54hswrq12ssp227vxbhsbamin9ir5b";
|
||||||
|
})];
|
||||||
|
|
||||||
# Manually install the server jar to prevent Meson from "fixing" it
|
# Manually install the server jar to prevent Meson from "fixing" it
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
echo -n > server/meson.build
|
echo -n > server/meson.build
|
||||||
|
Loading…
Reference in New Issue
Block a user