1 { lib, stdenv, fetchurl, unzip, makeWrapper, flex, bison, ncurses, buddy, tecla
2 , libsigsegv, gmpxx, cln, yices
10 url = "http://maude.cs.illinois.edu/w/images/0/0a/Full-Maude-${version}.zip";
11 sha256 = "8b13af02c6243116c2ef9592622ecaa06d05dbe1dd6b1e595551ff33855948f2";
21 url = "http://maude.cs.illinois.edu/w/images/d/d3/Maude-${version}.tar.gz";
22 sha256 = "b112d7843f65217e3b5a9d40461698ef8dab7cbbe830af21216dfb924dc88a2f";
25 nativeBuildInputs = [ flex bison unzip makeWrapper ];
27 ncurses buddy tecla gmpxx libsigsegv cln yices
30 hardeningDisable = [ "stackprotector" ] ++
31 lib.optionals stdenv.isi686 [ "pic" "fortify" ];
33 # Fix for glibc-2.34, see
34 # https://gitweb.gentoo.org/repo/gentoo.git/commit/dev-lang/maude/maude-3.1-r1.ebuild?id=f021cc6cfa1e35eb9c59955830f1fd89bfcb26b4
35 configureFlags = [ "--without-libsigsegv" ];
39 --datadir="$out/share/maude"
40 TECLA_LIBS="-ltecla -lncursesw"
42 CFLAGS="-O3" CXXFLAGS="-O3"
49 for n in "$out/bin/"*; do wrapProgram "$n" --suffix MAUDE_LIB ':' "$out/share/maude"; done
51 install -D -m 444 full-maude31.maude $out/share/maude/full-maude.maude
54 # bison -dv surface.yy -o surface.c
55 # mv surface.c surface.cc
56 # mv: cannot stat 'surface.c': No such file or directory
57 enableParallelBuilding = false;
60 broken = stdenv.isDarwin;
61 homepage = "http://maude.cs.illinois.edu/";
62 description = "High-level specification language";
63 license = lib.licenses.gpl2Plus;
66 Maude is a high-performance reflective language and system
67 supporting both equational and rewriting logic specification and
68 programming for a wide range of applications. Maude has been
69 influenced in important ways by the OBJ3 language, which can be
70 regarded as an equational logic sublanguage. Besides supporting
71 equational specification and programming, Maude also supports
72 rewriting logic computation.
75 platforms = lib.platforms.unix;
76 maintainers = [ lib.maintainers.peti ];