anchor.diff:    #
     # build error:
     #
  -  # /private/tmp/nix-build-sundials-5.7.0.drv-0/ccD2dUtR.s:21:15: error: index must be an integer in range [-256, 255].
  +  # /private/tmp/nix-build-sundials-6.2.0.drv-0/ccD2dUtR.s:21:15: error: index must be an integer in range [-256, 255].
     #         ldr     x0, [x0, ___stack_chk_guard];momd
     #                          ^
  -  # /private/tmp/nix-build-sundials-5.7.0.drv-0/ccD2dUtR.s:46:15: error: index must be an integer in range [-256, 255].
  +  # /private/tmp/nix-build-sundials-6.2.0.drv-0/ccD2dUtR.s:46:15: error: index must be an integer in range [-256, 255].
     #         ldr     x0, [x0, ___stack_chk_guard];momd
  +  #
  +  # See also a proposed solution: https://github.com/NixOS/nixpkgs/pull/151983
   
     hardeningDisable = lib.optionals (stdenv.isAarch64 && stdenv.isDarwin) [ "stackprotector" ];
   
  
positive.code: 
  stdenv.mkDerivation rec {
    pname = "sundials";
    version = "5.7.0";
  
    outputs = [ "out" "examples" ];
  
    src = fetchurl {
      url = "https://github.com/LLNL/sundials/releases/download/v${version}/sundials-${version}.tar.gz";
      hash = "sha256-SNp7qoFS3bIq7RsC2C0du0+/6iKs9nY0ARqgMDoQCkM=";
    };
  
    nativeBuildInputs = [ cmake gfortran ];
  
    buildInputs = [
      python
  
negative.code:       blas
        lapack
      ])
    # KLU support is based on Suitesparse. It is tested upstream according to the
    # section 1.1.4.2 of INSTALL_GUIDE.pdf found in the source tarball.
    ++ lib.optionals (kluSupport) [
      suitesparse
    ];
  