about summary refs log tree commit diff
path: root/pkgs/applications/video/mpv/scripts/convert.nix
diff options
context:
space:
mode:
authornicoo <nicoo@debian.org>2024-05-03 11:36:24 +0000
committerGitHub <noreply@github.com>2024-05-03 11:36:24 +0000
commitf950274df73552c21b8f9ea8e481a0e00283c950 (patch)
treefce5150660ce5295637a5b59894cc13d5923cea3 /pkgs/applications/video/mpv/scripts/convert.nix
parentc88c954f8154cf83b2fc763ffc5c864505156c77 (diff)
parent48eb357d3573f2281bf23460a02dac966e2aef2c (diff)
Merge #308292: mpvScripts scopewide fixups
Diffstat (limited to 'pkgs/applications/video/mpv/scripts/convert.nix')
-rw-r--r--pkgs/applications/video/mpv/scripts/convert.nix16
1 files changed, 8 insertions, 8 deletions
diff --git a/pkgs/applications/video/mpv/scripts/convert.nix b/pkgs/applications/video/mpv/scripts/convert.nix
index d1fdc9c801bb7..2505be15da544 100644
--- a/pkgs/applications/video/mpv/scripts/convert.nix
+++ b/pkgs/applications/video/mpv/scripts/convert.nix
@@ -22,14 +22,14 @@ buildLua {
 
   postPatch = ''
     substituteInPlace convert_script.lua \
-      --replace 'mkvpropedit_exe = "mkvpropedit"' \
-                'mkvpropedit_exe = "${mkvtoolnix-cli}/bin/mkvpropedit"' \
-      --replace 'mkvmerge_exe = "mkvmerge"' \
-                'mkvmerge_exe = "${mkvtoolnix-cli}/bin/mkvmerge"' \
-      --replace 'yad_exe = "yad"' \
-                'yad_exe = "${yad}/bin/yad"' \
-      --replace 'notify_send_exe = "notify-send"' \
-                'notify_send_exe = "${libnotify}/bin/notify-send"' \
+      --replace-fail 'mkvpropedit_exe = "mkvpropedit"' \
+                'mkvpropedit_exe = "${lib.getExe' mkvtoolnix-cli "mkvpropedit"}"' \
+      --replace-fail 'mkvmerge_exe = "mkvmerge"' \
+                'mkvmerge_exe = "${lib.getExe' mkvtoolnix-cli "mkvmerge"}"' \
+      --replace-fail 'yad_exe = "yad"' \
+                'yad_exe = "${lib.getExe yad}"' \
+      --replace-fail 'notify_send_exe = "notify-send"' \
+                'notify_send_exe = "${lib.getExe libnotify}"' \
   '';
 
   scriptPath = "convert_script.lua";