summary refs log blame commit diff
path: root/pkgs/development/libraries/vapoursynth/default.nix
blob: ae43307cf31deb2564949d1616022d1e5e7faa3d (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                     

                                                  

  



                                       

                                  
                  

                         



                                                                    





                                                           
                                     



                      
                                                  

    
          
                                                                         


                                              



                                                
{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook,
  glibc, zimg, imagemagick, libass, yasm, python3,
  ocrSupport ? false, tesseract
}:

assert ocrSupport -> tesseract != null;

with stdenv.lib;

stdenv.mkDerivation rec {
  name = "vapoursynth-${version}";
  version = "R36";

  src = fetchFromGitHub {
    owner  = "vapoursynth";
    repo   = "vapoursynth";
    rev    = version;
    sha256 = "10yiccj7yd4bd3a6k15xahb5y3ymcagyaqavh0wal2rwzfck9k8c";
  };

  buildInputs = [
    pkgconfig autoreconfHook
    zimg imagemagick libass glibc tesseract yasm
    (python3.withPackages (ps: with ps; [ sphinx cython ]))
  ] ++ optional ocrSupport tesseract;

  configureFlags = [
    "--enable-imwri"
    "--disable-static"
    (optionalString (!ocrSupport) "--disable-ocr")
  ];

  meta = {
    description = "A video processing framework with the future in mind";
    homepage    = http://www.vapoursynth.com/;
    license     = licenses.lgpl21;
    platforms   = platforms.unix;
    maintainers = with maintainers; [ rnhmjoj ];
  };

}