summary refs log tree commit diff
path: root/pkgs/applications/science/astronomy/gildas/default.nix
diff options
context:
space:
mode:
authorSebastien Maret <sebastien.maret@icloud.com>2018-09-06 16:10:21 +0200
committerJörg Thalheim <Mic92@users.noreply.github.com>2018-09-06 15:10:21 +0100
commit5b58c6ac7648bc6a216e5bebd394680227de1e85 (patch)
tree12d419ea2521ee10183d63ea12042938d10b652c /pkgs/applications/science/astronomy/gildas/default.nix
parent6ea0c3e2714d79df33a5fa9bfd7d5259e4475b4d (diff)
downloadnixpkgs-5b58c6ac7648bc6a216e5bebd394680227de1e85.tar
nixpkgs-5b58c6ac7648bc6a216e5bebd394680227de1e85.tar.gz
nixpkgs-5b58c6ac7648bc6a216e5bebd394680227de1e85.tar.bz2
nixpkgs-5b58c6ac7648bc6a216e5bebd394680227de1e85.tar.lz
nixpkgs-5b58c6ac7648bc6a216e5bebd394680227de1e85.tar.xz
nixpkgs-5b58c6ac7648bc6a216e5bebd394680227de1e85.tar.zst
nixpkgs-5b58c6ac7648bc6a216e5bebd394680227de1e85.zip
gildas: add alternative url for the source code (#46145)
For each new release, the upstream developers of Gildas move the
source code of the previous release to a different directory. Add this
directory to the list of url to avoid build failure at each new
release.
Diffstat (limited to 'pkgs/applications/science/astronomy/gildas/default.nix')
-rw-r--r--pkgs/applications/science/astronomy/gildas/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/applications/science/astronomy/gildas/default.nix b/pkgs/applications/science/astronomy/gildas/default.nix
index d74eee4190d..82575d9c6ff 100644
--- a/pkgs/applications/science/astronomy/gildas/default.nix
+++ b/pkgs/applications/science/astronomy/gildas/default.nix
@@ -12,7 +12,10 @@ stdenv.mkDerivation rec {
   name = "gildas-${version}";
 
   src = fetchurl {
-    url = "http://www.iram.fr/~gildas/dist/gildas-src-${srcVersion}.tar.gz";
+    # For each new release, the upstream developers of Gildas move the
+    # source code of the previous release to a different directory
+    urls = [ "http://www.iram.fr/~gildas/dist/gildas-src-${srcVersion}.tar.gz"
+      "http://www.iram.fr/~gildas/dist/archive/gildas/gildas-src-${srcVersion}.tar.gz" ];
     sha256 = "0mg3wijrj8x1p912vkgrhxbypjx7aj9b1492yxvq2y3fxban6bj1";
   };