anchor.diff:           pkg-config/libtool hooks */ ''
           rm -frv $out/includes
           rm -frv $out/lib/pkgconfig
  -      '' +
  -      /* Rename the library to a unique name */ ''
  +      '' + /* Rename the library to a unique name */ ''
           mv -v $out/lib/libx265.a $out/lib/libx265_main12.a
         '';
     };
  
positive.code: , ninja
  , yasm
  
  , numactl ? null
  
  # Optionals
  , cliSupport ? true # Build standalone CLI application
  
negative.code: assert (elem targetSystem platforms.linux) -> numactl != null;
  
  let
    version = "2.0";
    /*src = fetchurl {
      url = "https://bitbucket.org/multicoreware/x265/downloads/" +
            "x265_${version}.tar.gz";
      sha256 = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";
    };*/
    #version = "2016-07-04";
    src = fetchhg {
      url = "https://bitbucket.org/multicoreware/x265";
      rev = "${version}";
      sha256 = "0a1gdxwzzwlgr76hg78v9hczf2lqq9l38k3dd6b29gxsprq2capd";
    };
    cmakeFlagsAll = [
      (cmFlag "ENABLE_TESTS" false)
  