Skip to content

Commit

Permalink
Merge pull request #145918 from msfjarvis/hs/2021-11-14/scrcpy-1.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mkg20001 authored Nov 14, 2021
2 parents 0b239a4 + 9c83343 commit 312a3d0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions pkgs/misc/scrcpy/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,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 {
Expand All @@ -23,7 +24,7 @@ stdenv.mkDerivation rec {
owner = "Genymobile";
repo = pname;
rev = "v${version}";
sha256 = "sha256-IR4FTbVtHp9rRm0U4d1zkl0u+oR5FeElJ91NIspSKWg=";
sha256 = "sha256-yj/hpndVC1oInrYmCSKQix1kNWy/GpAlmO/6o3vvQQE=";
};

# postPatch:
Expand All @@ -37,7 +38,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 = ''
Expand Down

0 comments on commit 312a3d0

Please sign in to comment.