nixpkgs/pkgs/development/interpreters/acl2/default.nix

36 lines
966 B
Nix
Raw Normal View History

2016-01-24 13:49:33 +01:00
{ stdenv, fetchurl, sbcl }:
stdenv.mkDerivation rec {
name = "acl2-${version}";
version = "v6-5";
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";
name = "acl2-${version}.tar.gz";
};
2016-01-24 13:49:33 +01:00
buildInputs = [ sbcl ];
2016-01-24 13:49:33 +01:00
phases = "unpackPhase installPhase";
installSuffix = "acl2";
2016-01-24 13:49:33 +01:00
installPhase = ''
mkdir -p $out/share/${installSuffix}
cp -R . $out/share/${installSuffix}
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
'';
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;
};
}