anchor.diff:    inherit version;
     src = fetchurl {
       url = "https://icl.cs.utk.edu/projectsfiles/magma/downloads/magma-${version}.tar.gz";
  -    sha256 = "0rrvd21hczxlm8awc9z54fj7iqpjmsb518fy32s6ghz0g90znd3p";
  +    hash = "sha256-dbVU2rAJA+LRC5cskT5Q5/iMvGLzrkMrWghsfk7aCnE=";
       name = "magma-${version}.tar.gz";
     };
   
  
positive.code:        in majorIs == "9" || majorIs == "10" || majorIs == "11";
  
  let
    version = "2.5.4";
  
    # We define a specific set of CUDA compute capabilities here,
    # because CUDA 11 does not support compute capability 3.0. Also,
  
negative.code:   enableParallelBuilding=true;
    buildFlags = [ "magma" "magma_sparse" ];
  
    meta = with lib; {
      description = "Matrix Algebra on GPU and Multicore Architectures";
      license = licenses.bsd3;
  