2021-01-23 13:15:07 +00:00
|
|
|
{ lib, stdenv, fetchurl, unzip, makeWrapper, flex, bison, ncurses, buddy, tecla
|
2020-01-31 15:24:49 +00:00
|
|
|
, libsigsegv, gmpxx, cln, yices
|
2016-12-22 11:42:02 +00:00
|
|
|
}:
|
2008-07-15 09:58:30 +00:00
|
|
|
|
2016-12-22 11:42:02 +00:00
|
|
|
let
|
2010-04-12 11:21:42 +00:00
|
|
|
|
2021-01-19 14:24:30 +00:00
|
|
|
version = "3.1";
|
2010-04-12 11:21:42 +00:00
|
|
|
|
2008-11-13 19:35:48 +00:00
|
|
|
fullMaude = fetchurl {
|
2021-01-19 14:24:30 +00:00
|
|
|
url = "http://maude.cs.illinois.edu/w/images/0/0a/Full-Maude-${version}.zip";
|
|
|
|
sha256 = "8b13af02c6243116c2ef9592622ecaa06d05dbe1dd6b1e595551ff33855948f2";
|
2016-12-22 11:42:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "maude";
|
|
|
|
inherit version;
|
2016-12-22 11:42:02 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-19 14:24:30 +00:00
|
|
|
url = "http://maude.cs.illinois.edu/w/images/d/d3/Maude-${version}.tar.gz";
|
|
|
|
sha256 = "b112d7843f65217e3b5a9d40461698ef8dab7cbbe830af21216dfb924dc88a2f";
|
2008-07-15 09:58:30 +00:00
|
|
|
};
|
2010-04-12 11:21:42 +00:00
|
|
|
|
2016-12-29 11:18:28 +00:00
|
|
|
buildInputs = [
|
2020-01-31 15:24:49 +00:00
|
|
|
flex bison ncurses buddy tecla gmpxx libsigsegv makeWrapper unzip cln yices
|
2016-12-29 11:18:28 +00:00
|
|
|
];
|
2010-04-12 11:21:42 +00:00
|
|
|
|
2016-08-24 18:29:36 +00:00
|
|
|
hardeningDisable = [ "stackprotector" ] ++
|
2021-01-23 13:15:07 +00:00
|
|
|
lib.optionals stdenv.isi686 [ "pic" "fortify" ];
|
2016-05-31 12:58:10 +00:00
|
|
|
|
2014-01-13 16:14:40 +00:00
|
|
|
preConfigure = ''
|
|
|
|
configureFlagsArray=(
|
2016-12-22 11:42:02 +00:00
|
|
|
--datadir="$out/share/maude"
|
2014-01-13 16:14:40 +00:00
|
|
|
TECLA_LIBS="-ltecla -lncursesw"
|
2016-12-29 11:18:28 +00:00
|
|
|
LIBS="-lcln"
|
2014-01-13 16:14:40 +00:00
|
|
|
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
|
2016-12-29 11:18:28 +00:00
|
|
|
unzip ${fullMaude}
|
2021-01-19 14:24:30 +00:00
|
|
|
install -D -m 444 full-maude31.maude $out/share/maude/full-maude.maude
|
2008-07-15 09:58:30 +00:00
|
|
|
'';
|
2010-04-12 11:21:42 +00:00
|
|
|
|
2018-11-13 03:32:19 +00:00
|
|
|
# bison -dv surface.yy -o surface.c
|
|
|
|
# mv surface.c surface.cc
|
|
|
|
# mv: cannot stat 'surface.c': No such file or directory
|
|
|
|
enableParallelBuilding = false;
|
|
|
|
|
2010-05-09 16:01:44 +00:00
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://maude.cs.illinois.edu/";
|
2014-08-24 14:21:08 +00:00
|
|
|
description = "High-level specification language";
|
2021-01-23 13:15:07 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
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.
|
|
|
|
'';
|
|
|
|
|
2021-01-23 13:15:07 +00:00
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
maintainers = [ lib.maintainers.peti ];
|
2010-05-09 16:01:44 +00:00
|
|
|
};
|
2008-07-15 09:58:30 +00:00
|
|
|
}
|