about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorPascal Wittmann <mail@pascal-wittmann.de>2018-04-07 17:39:54 +0200
committerPascal Wittmann <mail@pascal-wittmann.de>2018-04-07 17:39:54 +0200
commit95ece9efe5104522ed024e3858d46f17bc6aaf16 (patch)
treec410446155fe677a70a7e4daabe95c19b279b5f2 /pkgs
parent3e37d2e2a65d076c0855517f782d0b5ca8f88c02 (diff)
downloadnixlib-95ece9efe5104522ed024e3858d46f17bc6aaf16.tar
nixlib-95ece9efe5104522ed024e3858d46f17bc6aaf16.tar.gz
nixlib-95ece9efe5104522ed024e3858d46f17bc6aaf16.tar.bz2
nixlib-95ece9efe5104522ed024e3858d46f17bc6aaf16.tar.lz
nixlib-95ece9efe5104522ed024e3858d46f17bc6aaf16.tar.xz
nixlib-95ece9efe5104522ed024e3858d46f17bc6aaf16.tar.zst
nixlib-95ece9efe5104522ed024e3858d46f17bc6aaf16.zip
spin: switch back to dropbox mirror
see #38542 for details
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/tools/analysis/spin/default.nix22
1 files changed, 7 insertions, 15 deletions
diff --git a/pkgs/development/tools/analysis/spin/default.nix b/pkgs/development/tools/analysis/spin/default.nix
index 1be5655b1e53..a59b452b432b 100644
--- a/pkgs/development/tools/analysis/spin/default.nix
+++ b/pkgs/development/tools/analysis/spin/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, lib, requireFile, makeWrapper, yacc, gcc
+{ stdenv, lib, fetchurl, makeWrapper, yacc, gcc
 , withISpin ? true, tk, swarm, graphviz }:
 
 let
@@ -10,14 +10,12 @@ in stdenv.mkDerivation rec {
   version = "6.4.8";
   url-version = stdenv.lib.replaceChars ["."] [""] version;
 
-  src = requireFile {
-    name = "spin${url-version}.tar.gz";
-    sha256 = "1rpazi5fj772121cn7r85fxypmaiv0x6x2l82b5y1xqzyf0fi4ph";
-    message = ''
-      reCAPTCHA is preventing us to download the file for you.
-      Please download it at http://spinroot.com/spin/Src/index.html
-      and add it to the nix-store using nix-prefetch-url.
-    '';
+  src = fetchurl {
+    # The homepage is behind CloudFlare anti-DDoS protection, which blocks cURL.
+    # Dropbox mirror from developers:
+    # https://www.dropbox.com/sh/fgzipzp4wpo3qc1/AADZPqS4aoR-pjNF6OQXRLQHa
+    url = "https://www.dropbox.com/sh/fgzipzp4wpo3qc1/AADya1lOBJZDbgWGrUSq-dfHa/spin${url-version}.tar.gz?raw=1";
+    sha256 = "1rvamdsf0igzpndlr4ck7004jw9x1bg4xyf78zh5k9sp848vnd80";
   };
 
   nativeBuildInputs = [ makeWrapper ];
@@ -25,12 +23,6 @@ in stdenv.mkDerivation rec {
 
   sourceRoot = "Spin/Src${version}";
 
-  unpackPhase = ''
-    # The archive is compressed twice
-    gunzip -c $src > spin.tar.gz
-    tar -xzf spin.tar.gz
-  '';
-
   installPhase = ''
     install -Dm755 spin $out/bin/spin
     wrapProgram $out/bin/spin \