anchor.diff:        "--enable-ffmpeg"
         "--disable-ffplay"
         (ifMinVer "0.6" "--enable-ffprobe")
  -      (if reqMin "4" then null else "--disable-ffserver")
  +      (ifVerOlder "4" "--disable-ffserver")
       # Libraries
         (ifMinVer "0.6" "--enable-avcodec")
         (ifMinVer "0.6" "--enable-avdevice")
  
positive.code: 
    # Disable dependency that needs fixes before it will work on Darwin or Arm
    disDarwinOrArmFix = origArg: minVer: fixArg: if ((isDarwin || isAarch32) && reqMin minVer) then fixArg else origArg;
  
    vaapiSupport = reqMin "0.6" && ((isLinux || isFreeBSD) && !isAarch32);
  
    vpxSupport = reqMin "0.6" && !isAarch32;
  in
  
  stdenv.mkDerivation rec {
  
    pname = "ffmpeg";
    inherit version;
  
  
negative.code:  *   pulseaudio
   *
   * Known issues:
   * ALL     - Cross-compiling will disable features not present on host OS
   *           (e.g. dxva2 support [DirectX] will not be enabled unless natively
   *           compiled on Cygwin)
  