summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/video/mpv
diff options
context:
space:
mode:
authorNaïm Favier <n@monade.li>2022-05-10 16:10:12 +0200
committerNaïm Favier <n@monade.li>2022-05-10 22:07:57 +0200
commit2ae69114a11c6a80a58abc6984fde8851ee8fe40 (patch)
tree414dd84a82b484ff8d5388890e46a4dbd2eddb75 /pkgs/applications/video/mpv
parent8b79ef2cb6ac286ae3489bcc5a3e6bd546dac67f (diff)
makeWrapper: implement --inherit-argv0
For symmetry/interoperability with makeBinaryWrapper. Implemented as --argv0 '$0'
Diffstat (limited to 'pkgs/applications/video/mpv')
-rw-r--r--pkgs/applications/video/mpv/wrapper.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/applications/video/mpv/wrapper.nix b/pkgs/applications/video/mpv/wrapper.nix
index 28414c3756d9..3dfe83e2449e 100644
--- a/pkgs/applications/video/mpv/wrapper.nix
+++ b/pkgs/applications/video/mpv/wrapper.nix
@@ -32,7 +32,7 @@ let
# All arguments besides the input and output binaries (${mpv}/bin/mpv and
# $out/bin/mpv). These are used by the darwin specific makeWrapper call
# used to wrap $out/Applications/mpv.app/Contents/MacOS/mpv as well.
- mostMakeWrapperArgs = lib.strings.escapeShellArgs ([ "--argv0" "'$0'"
+ mostMakeWrapperArgs = lib.strings.escapeShellArgs ([ "--inherit-argv0"
# These are always needed (TODO: Explain why)
"--prefix" "LUA_CPATH" ";" "${mpv.luaEnv}/lib/lua/${mpv.lua.luaversion}/?.so"
"--prefix" "LUA_PATH" ";" "${mpv.luaEnv}/share/lua/${mpv.lua.luaversion}/?.lua"
@@ -53,7 +53,7 @@ let
)) ++ extraMakeWrapperArgs)
;
umpvWrapperArgs = lib.strings.escapeShellArgs ([
- "--argv0" "'$0'"
+ "--inherit-argv0"
"--set" "MPV" "${placeholder "out"}/bin/mpv"
] ++ extraUmpvWrapperArgs)
;