From 7a032943f03b772636da4da785a95724b1995e8a Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 3 Sep 2022 22:16:41 +0200 Subject: [PATCH] pass correct vapoursynth package to python packages --- default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/default.nix b/default.nix index a616e58..6eacaa5 100644 --- a/default.nix +++ b/default.nix @@ -1,6 +1,11 @@ final: prev: let - callPythonPackage = prev.vapoursynth.python3.pkgs.callPackage; + # This is required to allow vapoursynth.withPlugins to be used inside python packages, + # where normally python3Packages.vapoursynth would be used, + # which only includes the python module without the frameserver. + callPythonPackage = prev.lib.callPackageWith (final // final.vapoursynth.python3.pkgs // { + inherit (final) vapoursynth; + }); in { vapoursynthPlugins = prev.recurseIntoAttrs {