anchor.diff:      # Bundling is done by building the static libraries, extracting objects from
       # them and combining the objects into one shared library.
       mkdir -p static
  -    make static JOBS=$NIX_BUILD_CORES AR_TARGET=$(pwd)/static/'$(LIBRARY).a'
  +    make static JOBS=$NIX_BUILD_CORES \
  +        MY_METIS_LIB=-lmetis \
  +        AR_TARGET=$(pwd)/static/'$(LIBRARY).a'
       (
           cd static
           for i in lib*.a; do
  
positive.code:     make library        \
          JOBS=$NIX_BUILD_CORES \
          BLAS=-lopenblas \
          LAPACK=""       \
          ${stdenv.lib.optionalString openblas.blas64 "CFLAGS=-DBLAS64"}
  
  
negative.code: 
    buildInputs = [
      openblas
      metis
      gfortran.cc.lib
    ] ++ stdenv.lib.optional enableCuda cudatoolkit;
  
  