2009-07-03 13:31:33 +02:00
|
|
|
{ stdenv, fetchurl, flex, bison, ncurses, buddy, tecla, libsigsegv, gmpxx, makeWrapper }:
|
2008-07-15 11:58:30 +02:00
|
|
|
|
2008-07-18 22:11:25 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2010-08-26 20:09:14 +02:00
|
|
|
name = "maude-2.5";
|
2010-04-12 13:21:42 +02:00
|
|
|
|
2008-07-18 22:11:25 +02:00
|
|
|
src = fetchurl {
|
2010-08-26 20:09:14 +02:00
|
|
|
url = "http://maude.cs.uiuc.edu/download/current/Maude-2.5.tar.gz";
|
|
|
|
sha256 = "16bvnbyi257z87crzkw9gx2kz13482hnjnik22c2p2ml4rj4lpfw";
|
2008-11-13 20:35:48 +01:00
|
|
|
};
|
2010-04-12 13:21:42 +02:00
|
|
|
|
2008-11-13 20:35:48 +01:00
|
|
|
fullMaude = fetchurl {
|
2010-08-26 20:09:14 +02:00
|
|
|
url = "http://maude.cs.uiuc.edu/download/current/FM2.5/full-maude25.maude";
|
|
|
|
sha256 = "1d0izdbmhpifb2plnkk3cp7li2z60r8a8ppxhifmfpzi6x6pfvrd";
|
2008-07-15 11:58:30 +02:00
|
|
|
};
|
2010-04-12 13:21:42 +02:00
|
|
|
|
2009-07-03 13:31:33 +02:00
|
|
|
buildInputs = [flex bison ncurses buddy tecla gmpxx libsigsegv makeWrapper];
|
2010-04-12 13:21:42 +02:00
|
|
|
|
2008-11-14 23:53:09 +01:00
|
|
|
configurePhase = ''./configure --disable-dependency-tracking --prefix=$out --datadir=$out/share/maude TECLA_LIBS="-ltecla -lncursesw" CFLAGS="-O3" CXXFLAGS="-O3"'';
|
2010-04-12 13:21:42 +02:00
|
|
|
|
2010-10-05 15:45:57 +02:00
|
|
|
# The test suite is known to fail on Darwin. If maude is ever updated to a
|
|
|
|
# new version, this exception ought to be removed again.
|
|
|
|
doCheck = !stdenv.isDarwin;
|
2010-04-12 13:21:42 +02:00
|
|
|
|
2008-07-15 11:58:30 +02:00
|
|
|
postInstall =
|
|
|
|
''
|
2008-11-14 23:53:09 +01:00
|
|
|
for n in $out/bin/*; do wrapProgram "$n" --suffix MAUDE_LIB ':' "$out/share/maude"; done
|
2008-07-15 11:58:30 +02:00
|
|
|
ensureDir $out/share/maude
|
2008-11-14 23:53:09 +01:00
|
|
|
cp ${fullMaude} $out/share/maude/full-maude.maude
|
2008-07-15 11:58:30 +02:00
|
|
|
'';
|
2010-04-12 13:21:42 +02:00
|
|
|
|
2010-05-09 18:01:44 +02:00
|
|
|
meta = {
|
|
|
|
homepage = "http://maude.cs.uiuc.edu/";
|
|
|
|
description = "Maude -- a high-level specification language";
|
|
|
|
license = "GPLv2";
|
2010-08-26 20:09:14 +02: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.
|
|
|
|
'';
|
|
|
|
|
2010-05-09 18:01:44 +02:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
|
|
|
};
|
2008-07-15 11:58:30 +02:00
|
|
|
}
|