2014-06-04 14:55:35 +00:00
|
|
|
{ stdenv, fetchurl, flex, bison, ncurses, buddy, tecla, libsigsegv, gmpxx, makeWrapper }:
|
2008-07-15 09:58:30 +00:00
|
|
|
|
2008-07-18 20:11:25 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2011-02-11 14:41:03 +00:00
|
|
|
name = "maude-2.6";
|
2010-04-12 11:21:42 +00:00
|
|
|
|
2008-07-18 20:11:25 +00:00
|
|
|
src = fetchurl {
|
2011-02-11 14:41:03 +00:00
|
|
|
url = "http://maude.cs.uiuc.edu/download/current/Maude-2.6.tar.gz";
|
|
|
|
sha256 = "182abzhvjvlaa21aqv7802v3bs57a4dm7cw09s3mqmih7nzpkfm5";
|
2008-11-13 19:35:48 +00:00
|
|
|
};
|
2010-04-12 11:21:42 +00:00
|
|
|
|
2008-11-13 19:35:48 +00:00
|
|
|
fullMaude = fetchurl {
|
2014-06-04 14:55:35 +00:00
|
|
|
url = "https://full-maude.googlecode.com/git/full-maude261h.maude";
|
|
|
|
sha256 = "0xx8bfn6arsa75m5vhp5lmpazgfw230ssq33h9vifswlvzzc81ha";
|
2008-07-15 09:58:30 +00:00
|
|
|
};
|
2010-04-12 11:21:42 +00:00
|
|
|
|
2009-07-03 11:31:33 +00:00
|
|
|
buildInputs = [flex bison ncurses buddy tecla gmpxx libsigsegv makeWrapper];
|
2010-04-12 11:21:42 +00:00
|
|
|
|
2014-01-13 16:14:40 +00:00
|
|
|
preConfigure = ''
|
|
|
|
configureFlagsArray=(
|
|
|
|
--datadir=$out/share/maude
|
|
|
|
TECLA_LIBS="-ltecla -lncursesw"
|
|
|
|
CFLAGS="-O3" CXXFLAGS="-O3"
|
|
|
|
)
|
|
|
|
'';
|
2010-04-12 11:21:42 +00:00
|
|
|
|
2011-02-11 14:41:03 +00:00
|
|
|
doCheck = true;
|
2010-04-12 11:21:42 +00:00
|
|
|
|
2014-01-13 16:14:40 +00:00
|
|
|
postInstall = ''
|
2011-01-26 15:39:24 +00:00
|
|
|
for n in "$out/bin/"*; do wrapProgram "$n" --suffix MAUDE_LIB ':' "$out/share/maude"; done
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/share/maude
|
2014-06-04 14:55:35 +00:00
|
|
|
cp ${fullMaude} -d $out/share/maude/full-maude.maude
|
2008-07-15 09:58:30 +00:00
|
|
|
'';
|
2010-04-12 11:21:42 +00:00
|
|
|
|
2010-05-09 16:01:44 +00:00
|
|
|
meta = {
|
|
|
|
homepage = "http://maude.cs.uiuc.edu/";
|
2014-08-24 14:21:08 +00:00
|
|
|
description = "High-level specification language";
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2010-08-26 18:09:14 +00:00
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
Maude is a high-performance reflective language and system
|
|
|
|
supporting both equational and rewriting logic specification and
|
|
|
|
programming for a wide range of applications. Maude has been
|
|
|
|
influenced in important ways by the OBJ3 language, which can be
|
|
|
|
regarded as an equational logic sublanguage. Besides supporting
|
|
|
|
equational specification and programming, Maude also supports
|
|
|
|
rewriting logic computation.
|
|
|
|
'';
|
|
|
|
|
2016-08-02 14:50:15 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2016-05-16 20:30:20 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.peti ];
|
2010-05-09 16:01:44 +00:00
|
|
|
};
|
2008-07-15 09:58:30 +00:00
|
|
|
}
|