ffms: fix vapoursynth plugin on darwin (#359262)

This commit is contained in:
Weijia Wang 2024-11-28 13:52:21 +01:00 committed by GitHub
commit 8e9dfecc09
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,10 +1,11 @@
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, pkg-config
, ffmpeg
, zlib
{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
pkg-config,
ffmpeg,
zlib,
}:
stdenv.mkDerivation rec {
@ -38,7 +39,7 @@ stdenv.mkDerivation rec {
# https://github.com/FFMS/ffms2#avisynth-and-vapoursynth-plugin
postInstall = ''
mkdir $out/lib/vapoursynth
ln -s $out/lib/libffms2.so $out/lib/vapoursynth/libffms2.so
ln -s $out/lib/libffms2${stdenv.hostPlatform.extensions.sharedLibrary} $out/lib/vapoursynth/libffms2${stdenv.hostPlatform.extensions.sharedLibrary}
'';
meta = with lib; {
@ -46,7 +47,7 @@ stdenv.mkDerivation rec {
description = "FFmpeg based source library for easy frame accurate access";
mainProgram = "ffmsindex";
license = licenses.mit;
maintainers = [ ];
maintainers = with maintainers; [ wegank ];
platforms = platforms.unix;
};
}