anchor.diff: -{ stdenv, fetchurl, fetchpatch, cmake, yasm
  +{ stdenv, fetchurl, fetchpatch, cmake, nasm, numactl
  +, numaSupport ? stdenv.hostPlatform.isLinux && (stdenv.hostPlatform.isx86 || stdenv.hostPlatform.isAarch64)  # Enabled by default on NUMA platforms
   , debugSupport ? false # Run-time sanity checks (debugging)
   , highbitdepthSupport ? false # false=8bits per channel, true=10/12bits per channel
   , werrorSupport ? false # Warnings as errors
  
positive.code:     rm $out/lib/*.a
    '';
  
    nativeBuildInputs = [ cmake yasm ];
  
    meta = with stdenv.lib; {
      description = "Library for encoding h.265/HEVC video streams";
  
negative.code: 
  stdenv.mkDerivation rec {
    name = "x265-${version}";
    version = "3.0";
  
    src = fetchurl {
      urls = [
        "https://get.videolan.org/x265/x265_${version}.tar.gz"
        "ftp://ftp.videolan.org/pub/videolan/x265/x265_${version}.tar.gz"
      ];
      sha256 = "0qh65wdpasrspkm1y0dlfa123myax568yi0sas0lmg5b1hkgrff5";
    };
  
    enableParallelBuilding = true;
  
    patches = [
      # Fix build on ARM (#406)
      (fetchpatch {
        url = "https://bitbucket.org/multicoreware/x265/issues/attachments/406/multicoreware/x265/1527562952.26/406/X265-2.8-asm-primitives.patch";
        sha256 = "1vf8bpl37gbd9dcbassgkq9i0rp24qm3bl6hx9zv325174bn402v";
  