anchor.diff:      "CUDA_PATH=${cudatoolkit}"
       "CUDART_LIB=${cudatoolkit.lib}/lib/libcudart.so"
       "CUBLAS_LIB=${cudatoolkit}/lib/libcublas.so"
  -  ];
  +  ] ++ stdenv.lib.optionals stdenv.isDarwin [
  +    # Unless these are set, the build will attempt to use `Accelerate` on darwin, see:
  +    # https://github.com/DrTimothyAldenDavis/SuiteSparse/blob/v5.8.1/SuiteSparse_config/SuiteSparse_config.mk#L368
  +    "BLAS=-lblas"
  +    "LAPACK=-llapack"
  +  ]
  +  ;
   
     buildFlags = [
       # Build individual shared libraries, not demos
  
positive.code:     "INSTALL=${placeholder "out"}"
      "INSTALL_INCLUDE=${placeholder "dev"}/include"
      "JOBS=$(NIX_BUILD_CORES)"
      "BLAS=-lblas"
      "LAPACK=-llapack"
      "MY_METIS_LIB=-lmetis"
    ] ++ stdenv.lib.optionals blas.isILP64 [
      "CFLAGS=-DBLAS64"
  
negative.code:     owner = "DrTimothyAldenDavis";
      repo = "SuiteSparse";
      rev = "v${version}";
      sha256 = "0qjlyfxs8s48rs63c2fzspisgq1kk4bwkgnhmh125hgkdhrq2w1c";
    };
  
    nativeBuildInputs = [
    ] ++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
  
    # Use compatible indexing for lapack and blas used
    buildInputs = [
      blas lapack
      metis
      gfortran.cc.lib
      gmp
      mpfr
    ] ++ stdenv.lib.optional enableCuda cudatoolkit;
  
    preConfigure = ''
  