2008-07-18 22:11:12 +02:00
|
|
|
{ stdenv, fetchurl, flex, bison, ncurses, buddy, tecla, libsigsegv, gmp }:
|
2008-07-18 22:11:02 +02:00
|
|
|
|
2008-07-18 22:11:25 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2008-09-25 23:37:59 +02:00
|
|
|
name = "maude-2.4-alpha-91c";
|
2008-07-18 22:11:25 +02:00
|
|
|
meta = {
|
2008-07-18 22:11:02 +02:00
|
|
|
homepage = "http://maude.cs.uiuc.edu/";
|
|
|
|
description = "Maude -- a high-level specification language";
|
|
|
|
license = "GPLv2";
|
|
|
|
};
|
2008-07-18 22:11:25 +02:00
|
|
|
src = fetchurl {
|
2008-09-25 23:37:59 +02:00
|
|
|
url = "http://www.csl.sri.com/users/eker/Maude/Alpha91c/Maude-2.4.tar.gz";
|
|
|
|
sha256 = "0z25rrmg1b317xba2aqir5719js2ig3k20n1pvq3qvlzg51b6wp1";
|
2008-07-18 22:11:02 +02:00
|
|
|
};
|
2008-07-18 22:11:25 +02:00
|
|
|
fullMaude = fetchurl {
|
2008-07-18 22:11:02 +02:00
|
|
|
url = "http://www.lcc.uma.es/~duran/FullMaude/FM23j/full-maude.maude";
|
2008-07-18 22:11:12 +02:00
|
|
|
sha256 = "1x25ckfh1dzn8pg5spzj7f23bkz0favybnaxww8qs29r3lsrl1ib";
|
2008-07-18 22:11:02 +02:00
|
|
|
};
|
2008-07-18 22:11:25 +02:00
|
|
|
docs = fetchurl {
|
2008-07-18 22:11:12 +02:00
|
|
|
url = "http://mirror.switch.ch/mirror/gentoo/distfiles/maude-2.3.0-extras.tar.bz2";
|
|
|
|
sha256 = "0kd5623k1wwj1rk4b6halrm3sdvd9kbiwg1hi2c3qim1nlfdgl0d";
|
|
|
|
};
|
|
|
|
buildInputs = [flex bison ncurses buddy tecla gmp libsigsegv];
|
2008-07-18 22:11:02 +02:00
|
|
|
configurePhase = ''./configure --disable-dependency-tracking --prefix=$out TECLA_LIBS="-ltecla -lncursesw" CFLAGS="-O3" CXXFLAGS="-O3"'';
|
2008-09-19 12:06:58 +02:00
|
|
|
doCheck = true;
|
2008-07-18 22:11:02 +02:00
|
|
|
postInstall =
|
|
|
|
''
|
|
|
|
ensureDir $out/share/maude
|
2008-07-18 22:11:12 +02:00
|
|
|
cp src/Main/*.maude $out/share/maude/
|
|
|
|
cp ${fullMaude} $out/share/maude/full-maude.maude
|
|
|
|
|
|
|
|
ensureDir $out/share/doc/maude
|
|
|
|
tar xf ${docs}
|
|
|
|
rm -f maude-2.3.0-extras/full-maude.maude
|
|
|
|
mv maude-2.3.0-extras/pdfs $out/share/doc/maude/pdf
|
|
|
|
mv maude-2.3.0-extras/* $out/share/doc/maude/
|
2008-07-18 22:11:02 +02:00
|
|
|
'';
|
|
|
|
}
|