From c7d7f1881ec9330aa7c9b9903dad3f417b8554f6 Mon Sep 17 00:00:00 2001 From: "Ricardo M. Correia" Date: Wed, 2 Jun 2021 03:16:08 +0200 Subject: [PATCH] sundials: fix download URL and hash The old URL doesn't seem to be available anymore (fails with 403 Forbidden error). The tarball in the new URL contains a few changes from the old one, so the hash has changed. Specifically, only the following files have changed: sundials-5.7.0/doc/arkode/ark_examples.pdf sundials-5.7.0/doc/arkode/ark_guide.pdf sundials-5.7.0/doc/cvode/cv_examples.pdf sundials-5.7.0/doc/cvode/cv_guide.pdf sundials-5.7.0/doc/cvodes/cvs_examples.pdf sundials-5.7.0/doc/cvodes/cvs_guide.pdf sundials-5.7.0/doc/ida/ida_examples.pdf sundials-5.7.0/doc/ida/ida_guide.pdf sundials-5.7.0/doc/idas/idas_examples.pdf sundials-5.7.0/doc/idas/idas_guide.pdf sundials-5.7.0/doc/kinsol/kin_examples.pdf sundials-5.7.0/doc/kinsol/kin_guide.pdf (cherry picked from commit 4ab604c4c436505c98eb11e4a5c0323a1a835279) --- pkgs/development/libraries/sundials/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/sundials/default.nix b/pkgs/development/libraries/sundials/default.nix index 3536ebd586e..daba200d08b 100644 --- a/pkgs/development/libraries/sundials/default.nix +++ b/pkgs/development/libraries/sundials/default.nix @@ -17,8 +17,8 @@ stdenv.mkDerivation rec { outputs = [ "out" "examples" ]; src = fetchurl { - url = "https://computation.llnl.gov/projects/${pname}/download/${pname}-${version}.tar.gz"; - sha256 = "jW3QlP7Mu41uzEE0DsFqZfq6yC7UQVAj9tfBwjkOovM="; + url = "https://github.com/LLNL/${pname}/releases/download/v${version}/${pname}-${version}.tar.gz"; + hash = "sha256-SNp7qoFS3bIq7RsC2C0du0+/6iKs9nY0ARqgMDoQCkM="; }; nativeBuildInputs = [ cmake ];