Skip to content

Commit

Permalink
spin: 6.4.7 -> 6.4.8
Browse files Browse the repository at this point in the history
  • Loading branch information
pSub committed Mar 9, 2018
1 parent 342743c commit ed3ad74
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions pkgs/development/tools/analysis/spin/default.nix
@@ -1,4 +1,4 @@
{ stdenv, lib, fetchurl, makeWrapper, yacc, gcc
{ stdenv, lib, requireFile, makeWrapper, yacc, gcc
, withISpin ? true, tk, swarm, graphviz }:

let
Expand All @@ -7,19 +7,30 @@ let

in stdenv.mkDerivation rec {
name = "spin-${version}";
version = "6.4.7";
version = "6.4.8";
url-version = stdenv.lib.replaceChars ["."] [""] version;

src = fetchurl {
url = "http://spinroot.com/spin/Src/spin${url-version}.tar.gz";
sha256 = "17m2xaag0jns8hsa4466zxq35ylg9fnzynzvjjmx4ympbiil6mqv";
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.
'';
};

nativeBuildInputs = [ makeWrapper ];
buildInputs = [ yacc ];

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 \
Expand Down

0 comments on commit ed3ad74

Please sign in to comment.