Merge pull request #135340 from SuperSandro2000/mpv

mpv: split dev output

Changed files
+8 -3
pkgs
applications
+6 -2
pkgs/applications/video/mpv/default.nix
···
pname = "mpv";
version = "0.33.1";
+
outputs = [ "out" "dev" ];
+
src = fetchFromGitHub {
owner = "mpv-player";
repo = "mpv";
···
nativeBuildInputs = [
addOpenGLRunpath docutils perl pkg-config python3 wafHook which
-
]
-
++ optional swiftSupport swift;
+
] ++ optional swiftSupport swift;
buildInputs = [
ffmpeg freetype libass libpthreadstubs
···
cp TOOLS/umpv $out/bin
cp $out/share/applications/mpv.desktop $out/share/applications/umpv.desktop
sed -i '/Icon=/ ! s/mpv/umpv/g' $out/share/applications/umpv.desktop
+
+
substituteInPlace $out/lib/pkgconfig/mpv.pc \
+
--replace "$out/include" "$dev/include"
'' + optionalString stdenv.isDarwin ''
mkdir -p $out/Applications
cp -r build/mpv.app $out/Applications
+2 -1
pkgs/applications/video/mpv/wrapper.nix
···
symlinkJoin {
name = "mpv-with-scripts-${mpv.version}";
-
paths = [ mpv ];
+
# TODO: don't link all mpv outputs and convert package to mpv-unwrapped?
+
paths = [ mpv.all ];
buildInputs = [ makeWrapper ];