anchor.diff:        (ifMinVer "0.6" "--enable-pic")
         (enableFeature runtimeCpuDetectBuild "runtime-cpudetect")
         "--enable-hardcoded-tables"
  -      (if multithreadBuild then (
  -         if stdenv.isCygwin then
  -           "--disable-pthreads --enable-w32threads"
  -         else # Use POSIX threads by default
  -           "--enable-pthreads --disable-w32threads")
  -       else
  -         "--disable-pthreads --disable-w32threads")
  -      (ifMinVer "0.9" "--disable-os2threads") # We don't support OS/2
  +      "--enable-pthreads"
  +      "--disable-w32threads"
  +      (ifMinVer "0.9" "--disable-os2threads")
         "--enable-network"
         (ifMinVer "2.4" "--enable-pixelutils")
       # Executables
  
positive.code:       "--enable-libmp3lame"
        (ifMinVer "1.2" "--enable-iconv")
        "--enable-libtheora"
        (ifMinVer "0.6" (enableFeature (isLinux || isFreeBSD) "vaapi"))
        "--enable-vdpau"
        "--enable-libvorbis"
        (disDarwinFix (ifMinVer "0.6" "--enable-libvpx") "0.6" "--disable-libvpx")
        (ifMinVer "2.4" "--enable-lzma")
        (ifMinVer "2.2" (enableFeature openglSupport "opengl"))
        (disDarwinFix (ifMinVer "0.9" "--enable-libpulse") "0.9" "--disable-libpulse")
        (ifMinVer "2.5" "--enable-sdl") # Only configurable since 2.5, auto detected before then
        (ifMinVer "1.2" "--enable-libsoxr")
        "--enable-libx264"
  
negative.code:   };
  
    passthru = {
      vaapiSupport =
        if reqMin "0.6" then
          true
        else
          false;
      vdpauSupport = true;
    };
  
    meta = with stdenv.lib; {
      description = "A complete, cross-platform solution to record, convert and stream audio and video";
      homepage = http://www.ffmpeg.org/;
      license = licenses.gpl3;
      maintainers = with maintainers; [
        codyopel
      ];
      platforms = [
        "i686-linux"
        "x86_64-linux"
      ];
      inherit branch;
    };
  }
  