parent
3e37d2e2a6
commit
95ece9efe5
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, lib, requireFile, makeWrapper, yacc, gcc
|
{ stdenv, lib, fetchurl, makeWrapper, yacc, gcc
|
||||||
, withISpin ? true, tk, swarm, graphviz }:
|
, withISpin ? true, tk, swarm, graphviz }:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
@ -10,14 +10,12 @@ in stdenv.mkDerivation rec {
|
||||||
version = "6.4.8";
|
version = "6.4.8";
|
||||||
url-version = stdenv.lib.replaceChars ["."] [""] version;
|
url-version = stdenv.lib.replaceChars ["."] [""] version;
|
||||||
|
|
||||||
src = requireFile {
|
src = fetchurl {
|
||||||
name = "spin${url-version}.tar.gz";
|
# The homepage is behind CloudFlare anti-DDoS protection, which blocks cURL.
|
||||||
sha256 = "1rpazi5fj772121cn7r85fxypmaiv0x6x2l82b5y1xqzyf0fi4ph";
|
# Dropbox mirror from developers:
|
||||||
message = ''
|
# https://www.dropbox.com/sh/fgzipzp4wpo3qc1/AADZPqS4aoR-pjNF6OQXRLQHa
|
||||||
reCAPTCHA is preventing us to download the file for you.
|
url = "https://www.dropbox.com/sh/fgzipzp4wpo3qc1/AADya1lOBJZDbgWGrUSq-dfHa/spin${url-version}.tar.gz?raw=1";
|
||||||
Please download it at http://spinroot.com/spin/Src/index.html
|
sha256 = "1rvamdsf0igzpndlr4ck7004jw9x1bg4xyf78zh5k9sp848vnd80";
|
||||||
and add it to the nix-store using nix-prefetch-url.
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
@ -25,12 +23,6 @@ in stdenv.mkDerivation rec {
|
||||||
|
|
||||||
sourceRoot = "Spin/Src${version}";
|
sourceRoot = "Spin/Src${version}";
|
||||||
|
|
||||||
unpackPhase = ''
|
|
||||||
# The archive is compressed twice
|
|
||||||
gunzip -c $src > spin.tar.gz
|
|
||||||
tar -xzf spin.tar.gz
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -Dm755 spin $out/bin/spin
|
install -Dm755 spin $out/bin/spin
|
||||||
wrapProgram $out/bin/spin \
|
wrapProgram $out/bin/spin \
|
||||||
|
|
Loading…
Reference in New Issue