about summary refs log tree commit diff
path: root/pkgs/applications/video
diff options
context:
space:
mode:
authorColin <colin@uninsane.org>2023-11-22 11:05:58 +0000
committerAnderson Torres <torres.anderson.85@protonmail.com>2023-11-27 08:28:15 -0300
commit90cd52a5594d641048cd3c71bb1bbc8ea0affa6b (patch)
tree833e9bb4b9141c002c9aba9ec8f3cebe1a78978d /pkgs/applications/video
parent9e6f9c6d8325d92c5a4e680d8b1ed2495d6f3942 (diff)
mpv-unwrapped: fix shebangs for cross-compiled builds
previously umpv had the build python and mpv_identify.sh had the build
bash, even though both of these are intended to run on the host.
Diffstat (limited to 'pkgs/applications/video')
-rw-r--r--pkgs/applications/video/mpv/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/applications/video/mpv/default.nix b/pkgs/applications/video/mpv/default.nix
index 33fb4fc782178..252f1637172fd 100644
--- a/pkgs/applications/video/mpv/default.nix
+++ b/pkgs/applications/video/mpv/default.nix
@@ -4,6 +4,7 @@
 , fetchFromGitHub
 , fetchpatch
 , addOpenGLRunpath
+, bash
 , docutils
 , meson
 , ninja
@@ -153,19 +154,20 @@ in stdenv'.mkDerivation (finalAttrs: {
     meson
     ninja
     pkg-config
-    python3
   ]
   ++ lib.optionals stdenv.isDarwin [ xcbuild.xcrun sigtool ]
   ++ lib.optionals swiftSupport [ swift ]
   ++ lib.optionals waylandSupport [ wayland-scanner ];
 
   buildInputs = [
+    bash
     ffmpeg
     freetype
     libass
     libpthreadstubs
     libuchardet
     luaEnv
+    python3
   ] ++ lib.optionals alsaSupport        [ alsa-lib ]
     ++ lib.optionals archiveSupport     [ libarchive ]
     ++ lib.optionals bluraySupport      [ libbluray ]
@@ -231,6 +233,7 @@ in stdenv'.mkDerivation (finalAttrs: {
   # See the explanation in addOpenGLRunpath.
   postFixup = lib.optionalString stdenv.isLinux ''
     addOpenGLRunpath $out/bin/mpv
+    patchShebangs --update --host $out/bin/umpv $out/bin/mpv_identify.sh
   '';
 
   passthru = {