From c7d7f1881ec9330aa7c9b9903dad3f417b8554f6 Mon Sep 17 00:00:00 2001 From: "Ricardo M. Correia" Date: Wed, 2 Jun 2021 03:16:08 +0200 Subject: [PATCH 1/2] 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 ]; From a0940c6ee4546c6a6dd8f6ba6919fa5697cad7ac Mon Sep 17 00:00:00 2001 From: Sandro Date: Sun, 6 Jun 2021 01:28:35 +0200 Subject: [PATCH 2/2] Update pkgs/development/libraries/sundials/default.nix (cherry picked from commit 248748e0408d1d9a8d43e4df0dc18bfe297c4887) --- pkgs/development/libraries/sundials/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/sundials/default.nix b/pkgs/development/libraries/sundials/default.nix index daba200d08b..f04b22abe8c 100644 --- a/pkgs/development/libraries/sundials/default.nix +++ b/pkgs/development/libraries/sundials/default.nix @@ -17,7 +17,7 @@ stdenv.mkDerivation rec { outputs = [ "out" "examples" ]; src = fetchurl { - url = "https://github.com/LLNL/${pname}/releases/download/v${version}/${pname}-${version}.tar.gz"; + url = "https://github.com/LLNL/sundials/releases/download/v${version}/sundials-${version}.tar.gz"; hash = "sha256-SNp7qoFS3bIq7RsC2C0du0+/6iKs9nY0ARqgMDoQCkM="; };