anchor.diff: -{ stdenvNoCC, fetchurl, rpm, cpio, undmg, darwin, enableStatic ? false }:
  +{ stdenvNoCC, fetchurl, rpmextract, undmg, darwin, enableStatic ? false }:
   /*
     For details on using mkl as a blas provider for python packages such as numpy,
     numexpr, scipy, etc., see the Python section of the NixPkgs manual.
  
positive.code:     then
        [ undmg darwin.cctools ]
      else
        [ rpm cpio ];
  
    buildPhase = if stdenvNoCC.isDarwin then ''
      for f in Contents/Resources/pkg/*.tgz; do
  
negative.code:     done
    '' else ''
      # Common stuff
      rpmextract rpm/intel-mkl-core-${rpm-ver}.x86_64.rpm
      rpmextract rpm/intel-mkl-common-c-${rpm-ver}.noarch.rpm
      rpmextract rpm/intel-mkl-common-f-${rpm-ver}.noarch.rpm
  
      # Dynamic libraries
      rpmextract rpm/intel-mkl-cluster-rt-${rpm-ver}.x86_64.rpm
      rpmextract rpm/intel-mkl-core-rt-${rpm-ver}.x86_64.rpm
      rpmextract rpm/intel-mkl-gnu-f-rt-${rpm-ver}.x86_64.rpm
      rpmextract rpm/intel-mkl-gnu-rt-${rpm-ver}.x86_64.rpm
  
      # Intel OpenMP runtime
      rpmextract rpm/intel-openmp-${openmp-ver}.x86_64.rpm
    '' + (if enableStatic then ''
      # Static libraries
      rpmextract rpm/intel-mkl-cluster-${rpm-ver}.x86_64.rpm
      rpmextract rpm/intel-mkl-gnu-${rpm-ver}.x86_64.rpm
      rpmextract rpm/intel-mkl-gnu-f-${rpm-ver}.x86_64.rpm
    '' else ''
      # Take care of installing dynamic-only PkgConfig files during the installPhase
    ''
    );
  
  