diff --git a/pkgs/development/libraries/vapoursynth/plugin-interface.nix b/pkgs/development/libraries/vapoursynth/plugin-interface.nix index 95df3c97747f..064893a3dbcd 100644 --- a/pkgs/development/libraries/vapoursynth/plugin-interface.nix +++ b/pkgs/development/libraries/vapoursynth/plugin-interface.nix @@ -42,6 +42,7 @@ runCommand "${vapoursynth.name}-with-plugins" { nativeBuildInputs = [ makeWrapper ]; passthru = { inherit python3; + inherit (vapoursynth) src version; withPlugins = plugins': withPlugins (plugins ++ plugins'); }; } '' diff --git a/pkgs/development/python-modules/vapoursynth/default.nix b/pkgs/development/python-modules/vapoursynth/default.nix index ec88f244aee6..3a72e5c2d9d0 100644 --- a/pkgs/development/python-modules/vapoursynth/default.nix +++ b/pkgs/development/python-modules/vapoursynth/default.nix @@ -1,4 +1,4 @@ -{ vapoursynth, cython, buildPythonPackage, unittestCheckHook }: +{ vapoursynth, cython, buildPythonPackage, unittestCheckHook, python }: buildPythonPackage { pname = "vapoursynth"; @@ -19,6 +19,13 @@ buildPythonPackage { unittestFlagsArray = [ "-s" "$src/test" "-p" "'*test.py'" ]; + passthru = { + withPlugins = plugins: + python.pkgs.vapoursynth.override { + vapoursynth = vapoursynth.withPlugins plugins; + }; + }; + inherit (vapoursynth) meta; }