anchor.diff:      homepage = "https://github.com/hfp/libxsmm";
       platforms = platforms.linux;
       maintainers = with stdenv.lib.maintainers; [ chessai ];
  -    inherit version;
     };
   }
  
positive.code: { stdenv, fetchFromGitHub, coreutils, gfortran7, gnused
  , python27, utillinux, which, bash
  }:
  
  let
    version = "1.15";
  in stdenv.mkDerivation {
    pname = "libxsmm";
    inherit version;
  
negative.code:   src = fetchFromGitHub {
      owner = "hfp";
      repo = "libxsmm";
      rev = version;
      sha256 = "1c1qj6hcdfx11bvilnly92vgk1niisd2bjw1s8vfyi2f7ws1wnp0";
    };
  
    nativeBuildInputs = [
      coreutils
      gfortran
      gnused
      python3
      utillinux
      which
    ];
  
    enableParallelBuilding = true;
  
    dontConfigure = true;
  
    makeFlags = let
      static = if enableStatic then "1" else "0";
    in [
      "OMP=1"
      "PREFIX=$(out)"
      "STATIC=${static}"
    ];
  
    prePatch = ''
      patchShebangs .
    '';
  
    meta = with stdenv.lib; {
      description = "Library targeting Intel Architecture for specialized dense and sparse matrix operations, and deep learning primitives";
  