2016-12-22 12:42:02 +01:00
|
|
|
{ stdenv, fetchurl, unzip, makeWrapper
|
|
|
|
, flex, bison, ncurses, buddy, tecla, libsigsegv, gmpxx,
|
|
|
|
}:
|
2008-07-15 11:58:30 +02:00
|
|
|
|
2016-12-22 12:42:02 +01:00
|
|
|
let
|
2010-04-12 13:21:42 +02:00
|
|
|
|
2016-12-22 12:42:02 +01:00
|
|
|
version = "2.7";
|
2010-04-12 13:21:42 +02:00
|
|
|
|
2008-11-13 20:35:48 +01:00
|
|
|
fullMaude = fetchurl {
|
2016-12-22 12:42:02 +01:00
|
|
|
url = "https://raw.githubusercontent.com/maude-team/full-maude/master/full-maude27c.maude";
|
|
|
|
sha256 = "08bg3gn1vyjy5k69hnynpzc9s1hnrbkyv6z08y1h2j37rlc4c18y";
|
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "maude-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/maude-team/maude/archive/v${version}-ext-hooks.tar.gz";
|
|
|
|
sha256 = "02p0snxm69rs8pvm93r91p881dw6p3bxmazr3cfw5pnxpgz0vjl0";
|
2008-07-15 11:58:30 +02:00
|
|
|
};
|
2010-04-12 13:21:42 +02:00
|
|
|
|
2016-12-22 12:42:02 +01:00
|
|
|
buildInputs = [flex bison ncurses buddy tecla gmpxx libsigsegv makeWrapper unzip];
|
2010-04-12 13:21:42 +02:00
|
|
|
|
2016-08-24 20:29:36 +02:00
|
|
|
hardeningDisable = [ "stackprotector" ] ++
|
|
|
|
stdenv.lib.optionals stdenv.isi686 [ "pic" "fortify" ];
|
2016-05-31 14:58:10 +02:00
|
|
|
|
2014-01-13 17:14:40 +01:00
|
|
|
preConfigure = ''
|
|
|
|
configureFlagsArray=(
|
2016-12-22 12:42:02 +01:00
|
|
|
--datadir="$out/share/maude"
|
2014-01-13 17:14:40 +01:00
|
|
|
TECLA_LIBS="-ltecla -lncursesw"
|
|
|
|
CFLAGS="-O3" CXXFLAGS="-O3"
|
|
|
|
)
|
|
|
|
'';
|
2010-04-12 13:21:42 +02:00
|
|
|
|
2011-02-11 15:41:03 +01:00
|
|
|
doCheck = true;
|
2010-04-12 13:21:42 +02:00
|
|
|
|
2014-01-13 17:14:40 +01:00
|
|
|
postInstall = ''
|
2011-01-26 16:39:24 +01:00
|
|
|
for n in "$out/bin/"*; do wrapProgram "$n" --suffix MAUDE_LIB ':' "$out/share/maude"; done
|
2016-12-22 12:42:02 +01:00
|
|
|
install -D -m 444 ${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/";
|
2014-08-24 16:21:08 +02:00
|
|
|
description = "High-level specification language";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
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.
|
|
|
|
'';
|
|
|
|
|
2016-08-02 16:50:15 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2016-05-16 22:30:20 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.peti ];
|
2010-05-09 18:01:44 +02:00
|
|
|
};
|
2008-07-15 11:58:30 +02:00
|
|
|
}
|