2009-05-03 15:35:43 +01:00
|
|
|
{stdenv, fetchurl, flex, yacc, tk }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "spin-5.1.7";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://spinroot.com/spin/Src/spin517.tar.gz;
|
|
|
|
sha256 = "03c6bmar4z13jx7dddb029f0qnmgl8x4hyfwn3qijjyd4dbliiw6";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ flex yacc tk ];
|
|
|
|
|
2009-05-06 22:03:49 +01:00
|
|
|
patchPhase = ''
|
|
|
|
cd Src*
|
|
|
|
sed -i -e 's/-DNXT/-DNXT -DCPP="\\"gcc -E -x c\\""/' makefile
|
|
|
|
'';
|
2009-05-03 15:35:43 +01:00
|
|
|
installPhase = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/bin
|
2009-05-03 15:35:43 +01:00
|
|
|
cp ../Xspin*/xsp* $out/bin/xspin
|
2009-05-03 15:35:56 +01:00
|
|
|
sed -i -e '1s@^#!/bin/sh@#!${tk}/bin/wish@' \
|
2009-05-03 15:35:43 +01:00
|
|
|
-e '/exec wish/d' $out/bin/xspin
|
|
|
|
cp spin $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Formal verification tool for distributed software systems";
|
|
|
|
homepage = http://spinroot.com/;
|
|
|
|
license = "free";
|
2014-01-28 17:11:00 +00:00
|
|
|
maintainers = stdenv.lib.maintainers.mornfall;
|
2009-05-03 15:35:43 +01:00
|
|
|
};
|
|
|
|
}
|