scrcpy: replace hard-coded bash path
This commit is contained in:
parent
3027d3ab86
commit
548e82d650
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user