scrcpy: replace hard-coded bash path

This commit is contained in:
Harsh Shandilya 2022-12-22 20:28:56 +00:00
parent 3027d3ab86
commit 548e82d650
No known key found for this signature in database

View file

@ -2,6 +2,7 @@
, meson
, ninja
, pkg-config
, runtimeShell
, installShellFiles
, platform-tools
@ -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; {