2016-01-24 13:49:33 +01:00
|
|
|
{ stdenv, fetchurl, sbcl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "acl2-${version}";
|
|
|
|
version = "v6-5";
|
2009-08-13 16:32:52 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.cs.utexas.edu/users/moore/acl2/${version}/distrib/acl2.tar.gz";
|
2014-09-01 07:11:32 +02:00
|
|
|
sha256 = "19kfclgpdyms016s06pjf3icj3mx9jlcj8vfgpbx2ac4ls0ir36g";
|
2009-08-13 16:32:52 +02:00
|
|
|
name = "acl2-${version}.tar.gz";
|
|
|
|
};
|
|
|
|
|
2016-01-24 13:49:33 +01:00
|
|
|
buildInputs = [ sbcl ];
|
2009-08-13 16:32:52 +02:00
|
|
|
|
2016-01-24 13:49:33 +01:00
|
|
|
phases = "unpackPhase installPhase";
|
2009-08-13 16:32:52 +02:00
|
|
|
|
|
|
|
installSuffix = "acl2";
|
2016-01-24 13:49:33 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/${installSuffix}
|
|
|
|
cp -R . $out/share/${installSuffix}
|
2009-08-13 16:32:52 +02:00
|
|
|
cd $out/share/${installSuffix}
|
2016-01-24 13:49:33 +01:00
|
|
|
make 'LISP=${sbcl}/bin/sbcl --dynamic-space-size 2000'
|
|
|
|
make 'LISP=${sbcl}/bin/sbcl --dynamic-space-size 2000' regression
|
|
|
|
make LISP=${sbcl}/bin/sbcl TAGS
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp saved_acl2 $out/bin/acl2
|
|
|
|
'';
|
|
|
|
|
2009-08-13 16:32:52 +02:00
|
|
|
meta = {
|
|
|
|
description = "An interpreter and a prover for a Lisp dialect";
|
2016-01-24 13:49:33 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ raskin ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2009-08-13 16:32:52 +02:00
|
|
|
};
|
|
|
|
}
|