Merge pull request #135340 from SuperSandro2000/mpv
mpv: split dev output
This commit is contained in:
commit
071adcf7db
@ -97,6 +97,8 @@ in stdenv.mkDerivation rec {
|
||||
pname = "mpv";
|
||||
version = "0.33.1";
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mpv-player";
|
||||
repo = "mpv";
|
||||
@ -153,8 +155,7 @@ in stdenv.mkDerivation rec {
|
||||
|
||||
nativeBuildInputs = [
|
||||
addOpenGLRunpath docutils perl pkg-config python3 wafHook which
|
||||
]
|
||||
++ optional swiftSupport swift;
|
||||
] ++ optional swiftSupport swift;
|
||||
|
||||
buildInputs = [
|
||||
ffmpeg freetype libass libpthreadstubs
|
||||
@ -206,6 +207,9 @@ in stdenv.mkDerivation rec {
|
||||
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
|
||||
|
@ -61,7 +61,8 @@ let
|
||||
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 ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user