lol

spin: switch back to dropbox mirror

see #38542 for details

+7 -15
+7 -15
pkgs/development/tools/analysis/spin/default.nix
··· 1 - { stdenv, lib, requireFile, makeWrapper, yacc, gcc 1 + { stdenv, lib, fetchurl, makeWrapper, yacc, gcc 2 2 , withISpin ? true, tk, swarm, graphviz }: 3 3 4 4 let ··· 10 10 version = "6.4.8"; 11 11 url-version = stdenv.lib.replaceChars ["."] [""] version; 12 12 13 - src = requireFile { 14 - name = "spin${url-version}.tar.gz"; 15 - sha256 = "1rpazi5fj772121cn7r85fxypmaiv0x6x2l82b5y1xqzyf0fi4ph"; 16 - message = '' 17 - reCAPTCHA is preventing us to download the file for you. 18 - Please download it at http://spinroot.com/spin/Src/index.html 19 - and add it to the nix-store using nix-prefetch-url. 20 - ''; 13 + src = fetchurl { 14 + # The homepage is behind CloudFlare anti-DDoS protection, which blocks cURL. 15 + # Dropbox mirror from developers: 16 + # https://www.dropbox.com/sh/fgzipzp4wpo3qc1/AADZPqS4aoR-pjNF6OQXRLQHa 17 + url = "https://www.dropbox.com/sh/fgzipzp4wpo3qc1/AADya1lOBJZDbgWGrUSq-dfHa/spin${url-version}.tar.gz?raw=1"; 18 + sha256 = "1rvamdsf0igzpndlr4ck7004jw9x1bg4xyf78zh5k9sp848vnd80"; 21 19 }; 22 20 23 21 nativeBuildInputs = [ makeWrapper ]; 24 22 buildInputs = [ yacc ]; 25 23 26 24 sourceRoot = "Spin/Src${version}"; 27 - 28 - unpackPhase = '' 29 - # The archive is compressed twice 30 - gunzip -c $src > spin.tar.gz 31 - tar -xzf spin.tar.gz 32 - ''; 33 25 34 26 installPhase = '' 35 27 install -Dm755 spin $out/bin/spin