2008-11-13 19:35:48 +00:00
|
|
|
{ stdenv, fetchurl, flex, bison, ncurses, buddy, tecla, libsigsegv, gmp, unzip }:
|
2008-07-15 10:58:30 +01:00
|
|
|
|
2008-07-18 21:11:25 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2008-11-13 19:35:48 +00:00
|
|
|
name = "maude-2.4";
|
2008-07-18 21:11:25 +01:00
|
|
|
meta = {
|
2008-07-15 10:58:30 +01:00
|
|
|
homepage = "http://maude.cs.uiuc.edu/";
|
|
|
|
description = "Maude -- a high-level specification language";
|
|
|
|
license = "GPLv2";
|
|
|
|
};
|
2008-07-18 21:11:25 +01:00
|
|
|
src = fetchurl {
|
2008-11-13 19:35:48 +00:00
|
|
|
url = "http://maude.cs.uiuc.edu/download/current/Maude-2.4.tar.gz";
|
|
|
|
sha256 = "0bydkf8fd5v267bfak4mm5lmm3vvnr6ir1jr7gimgyzqygdk0in2";
|
|
|
|
};
|
|
|
|
fullMaude = fetchurl {
|
|
|
|
url = "http://www.lcc.uma.es/~duran/FullMaude/FM23l/full-maude.maude.zip";
|
|
|
|
sha256 = "08m54dskj2c6x00a5l5x1my88na4x8wmm048g0srsknhv5j91lf2";
|
2008-07-15 10:58:30 +01:00
|
|
|
};
|
2008-07-18 21:11:25 +01:00
|
|
|
docs = fetchurl {
|
2008-07-15 10:58:30 +01:00
|
|
|
url = "http://mirror.switch.ch/mirror/gentoo/distfiles/maude-2.3.0-extras.tar.bz2";
|
|
|
|
sha256 = "0kd5623k1wwj1rk4b6halrm3sdvd9kbiwg1hi2c3qim1nlfdgl0d";
|
|
|
|
};
|
2008-11-13 19:35:48 +00:00
|
|
|
buildInputs = [flex bison unzip ncurses buddy tecla gmp libsigsegv];
|
2008-07-15 10:58:30 +01:00
|
|
|
configurePhase = ''./configure --disable-dependency-tracking --prefix=$out TECLA_LIBS="-ltecla -lncursesw" CFLAGS="-O3" CXXFLAGS="-O3"'';
|
2008-11-13 19:35:48 +00:00
|
|
|
doCheck = true;
|
2008-07-15 10:58:30 +01:00
|
|
|
postInstall =
|
|
|
|
''
|
|
|
|
ensureDir $out/share/maude
|
2008-11-13 19:35:48 +00:00
|
|
|
cp src/Main/*.maude $out/share/maude/
|
|
|
|
unzip -aa ${fullMaude}
|
|
|
|
mv full-maude.maude $out/share/maude/full-maude.maude
|
|
|
|
|
2008-07-15 10:58:30 +01:00
|
|
|
ensureDir $out/share/doc/maude
|
|
|
|
tar xf ${docs}
|
2008-11-13 19:35:48 +00:00
|
|
|
rm -f maude-2.3.0-extras/full-maude.maude
|
2008-07-15 10:58:30 +01:00
|
|
|
mv maude-2.3.0-extras/pdfs $out/share/doc/maude/pdf
|
|
|
|
mv maude-2.3.0-extras/* $out/share/doc/maude/
|
|
|
|
'';
|
|
|
|
}
|