diff --git a/pkgs/development/libraries/vapoursynth/default.nix b/pkgs/development/libraries/vapoursynth/default.nix index b37f28f868ea..cdbecb4dc8bb 100644 --- a/pkgs/development/libraries/vapoursynth/default.nix +++ b/pkgs/development/libraries/vapoursynth/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchFromGitHub, pkgconfig, autoreconfHook, - zimg, libass, yasm, python3, + zimg, libass, yasm, python3, libiconv, ApplicationServices, ocrSupport ? false, tesseract, imwriSupport? true, imagemagick7 }: @@ -20,11 +20,12 @@ stdenv.mkDerivation rec { sha256 = "0nabl6949s7awy7rnr4ck52v50xr0hwr280fyzsqixgp8w369jn0"; }; + nativeBuildInputs = [ pkgconfig autoreconfHook ]; buildInputs = [ - pkgconfig autoreconfHook zimg libass tesseract yasm (python3.withPackages (ps: with ps; [ sphinx cython ])) - ] ++ optional ocrSupport tesseract + ] ++ optionals stdenv.isDarwin [ libiconv ApplicationServices ] + ++ optional ocrSupport tesseract ++ optional imwriSupport imagemagick7; configureFlags = [ diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d65cf86dff51..63d30c22ff22 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17807,7 +17807,9 @@ with pkgs; vapor = callPackage ../games/vapor { love = love_0_8; }; - vapoursynth = callPackage ../development/libraries/vapoursynth { }; + vapoursynth = callPackage ../development/libraries/vapoursynth { + inherit (darwin.apple_sdk.frameworks) ApplicationServices; + }; vapoursynth-mvtools = callPackage ../development/libraries/vapoursynth-mvtools { };