From c50074fffdf41f98a31a103893c972ba8ee4c986 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Tue, 26 Nov 2024 18:01:21 +0100 Subject: [PATCH] vapoursynth: fix plugin interface on darwin --- pkgs/by-name/va/vapoursynth/plugin-interface.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/va/vapoursynth/plugin-interface.nix b/pkgs/by-name/va/vapoursynth/plugin-interface.nix index dcc7b6c909eb..a9abdd63abef 100644 --- a/pkgs/by-name/va/vapoursynth/plugin-interface.nix +++ b/pkgs/by-name/va/vapoursynth/plugin-interface.nix @@ -51,8 +51,13 @@ let ext = stdenv.hostPlatform.extensions.sharedLibrary; in -if false then - vapoursynth +if stdenv.hostPlatform.isDarwin then + vapoursynth.overrideAttrs (previousAttrs: { + pname = "vapoursynth-with-plugins"; + configureFlags = (previousAttrs.configureFlags or [ ]) ++ [ + "--with-plugindir=${pluginsEnv}/lib/vapoursynth" + ]; + }) else runCommand "${vapoursynth.name}-with-plugins" {