anchor.diff: -{ stdenvNoCC, writeText, fetchurl, rpm, cpio, openmp }:
  +{ stdenvNoCC, writeText, fetchurl, rpmextract, openmp, undmg }:
   
   stdenvNoCC.mkDerivation rec {
     name = "mkl-${version}";
  
positive.code:   date = "2019.0";
    rel = "117";
  
    src = fetchurl {
      url = "http://registrationcenter-download.intel.com/akdlm/irc_nas/tec/13575/l_mkl_${version}.tgz";
      sha256 = "1bf7i54iqlf7x7fn8kqwmi06g30sxr6nq3ac0r871i6g0p3y47sf";
    };
  
    buildInputs = [ rpm cpio ];
    propagatedBuildInputs = [ openmp ];
  
    buildPhase = ''
      rpm2cpio rpm/intel-mkl-common-c-${date}-${rel}-${date}-${rel}.noarch.rpm | cpio -idmv
      rpm2cpio rpm/intel-mkl-core-rt-${date}-${rel}-${date}-${rel}.x86_64.rpm | cpio -idmv
    '';
  
    installPhase = ''
      mkdir -p $out/lib
      cp -r opt/intel/compilers_and_libraries_${version}/linux/mkl/include $out/
      cp -r opt/intel/compilers_and_libraries_${version}/linux/mkl/lib/intel64_lin/* $out/lib/
      cp license.txt $out/lib/
    '';
  
    # Per license agreement, do not modify the binary
  
negative.code:       threading models.
      '';
      homepage = https://software.intel.com/en-us/mkl;
      license = [ licenses.issl licenses.unfreeRedistributable ];
      platforms = [ "x86_64-linux" "x86_64-darwin" ];
      maintainers = [ maintainers.bhipple ];
    };
  }
  