anchor.diff:  { stdenv
   , cmake
   , fetchurl
  -, python }:
  +, python
  +, liblapack
  +, gfortran
  +, lapackSupport ? true }:
   
  -stdenv.mkDerivation rec {
  +let liblapackShared = liblapack.override {
  +  shared = true;
  +};
  +
  +in stdenv.mkDerivation rec {
     pname = "sundials";
     version = "4.1.0";
   
  +  buildInputs = [ python ] ++ stdenv.lib.optionals (lapackSupport) [ gfortran ];
     nativeBuildInputs = [ cmake ];
  -  buildInputs = [ python ];
   
     src = fetchurl {
       url = "https://computation.llnl.gov/projects/${pname}/download/${pname}-${version}.tar.gz";
  
positive.code:     maintainers = with maintainers; [ flokli idontgetoutmuch ];
      license     = licenses.bsd3;
    };
  
  }
  
negative.code: 
    cmakeFlags = [
      "-DEXAMPLES_INSTALL_PATH=${placeholder "out"}/share/examples"
    ] ++ stdenv.lib.optionals (lapackSupport) [
      "-DSUNDIALS_INDEX_TYPE=int32_t"
      "-DLAPACK_ENABLE=ON"
      "-DLAPACK_LIBRARIES=${liblapackShared}/lib/liblapack${stdenv.hostPlatform.extensions.sharedLibrary};${liblapackShared}/lib/libblas${stdenv.hostPlatform.extensions.sharedLibrary}"
    ];
  
    doCheck = true;
  