anchor.diff:   *   pulseaudio
    *
    * Known issues:
  - * 0.6     - fails to compile (unresolved) (so far, only disabling a number of
  - *           features works, but that is not a feasible solution)
  - * 0.6.90  - mmx: compile errors (fix: disable for 0.6.90-rc0)
  - * 1.1     - libsoxr: compile error (fix: disable for 1.1)
  - *           Support was initially added in 1.1 before soxr api change, fix
  - *           would probably be to add soxr-1.0
    * 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)
  
positive.code: { lib, stdenv, buildPackages, fetchurl, pkg-config, addOpenGLRunpath, perl, texinfo, yasm
  , alsa-lib, bzip2, fontconfig, freetype, gnutls, libiconv, lame, libass, libogg
  , libssh, libtheora, libva, libdrm, libvorbis, libvpx, xz, soxr
  , x264, x265, xvidcore, zimg, zlib, libopus, speex, nv-codec-headers, dav1d
  , srt
  , openglSupport ? false, libGLU, libGL
  , libmfxSupport ? false, intel-media-sdk
  , libaomSupport ? false, libaom
  
negative.code:     # Build flags
        "--enable-shared"
        (ifMinVer "0.6" "--enable-pic")
        (ifMinVer "4.0" (enableFeature srtSupport "libsrt"))
        (enableFeature runtimeCpuDetectBuild "runtime-cpudetect")
        "--enable-hardcoded-tables"
      ] ++
  