blob: 4493b2c7b852161eb8ddda5453ea7f0afc47e9d7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
{ stdenv, fetchurl, flex, bison, ncurses, buddy, tecla, libsigsegv, gmpxx, makeWrapper }:
stdenv.mkDerivation rec {
name = "maude-2.6";
src = fetchurl {
url = "http://maude.cs.uiuc.edu/download/current/Maude-2.6.tar.gz";
sha256 = "182abzhvjvlaa21aqv7802v3bs57a4dm7cw09s3mqmih7nzpkfm5";
};
fullMaude = fetchurl {
url = "https://full-maude.googlecode.com/git/full-maude261h.maude";
sha256 = "0xx8bfn6arsa75m5vhp5lmpazgfw230ssq33h9vifswlvzzc81ha";
};
buildInputs = [flex bison ncurses buddy tecla gmpxx libsigsegv makeWrapper];
hardeningDisable = [ "stackprotector" ];
preConfigure = ''
configureFlagsArray=(
--datadir=$out/share/maude
TECLA_LIBS="-ltecla -lncursesw"
CFLAGS="-O3" CXXFLAGS="-O3"
)
'';
doCheck = true;
postInstall = ''
for n in "$out/bin/"*; do wrapProgram "$n" --suffix MAUDE_LIB ':' "$out/share/maude"; done
mkdir -p $out/share/maude
cp ${fullMaude} -d $out/share/maude/full-maude.maude
'';
meta = {
homepage = "http://maude.cs.uiuc.edu/";
description = "High-level specification language";
license = stdenv.lib.licenses.gpl2;
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.
'';
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.peti ];
};
}
|