@@ -1,16 +1,26 @@
1−{ stdenv, fetchurl, sbcl }:
1+{ stdenv, fetchFromGitHub,
2+ # perl, which, nettools,
3+ sbcl }:
24
3−stdenv.mkDerivation rec {
5+let hashes = {
6+ "7.4" = "04jb789nks9llwysxz1zw9pq1dh0j39b5fcmivcc4bq9v9cga2l1";
7+};
8+in stdenv.mkDerivation rec {
49 name = "acl2-${version}";
5− version = "v6-5";
10+ version = "7.4";
611
7− src = fetchurl {
8− url = "http://www.cs.utexas.edu/users/moore/acl2/${version}/distrib/acl2.tar.gz";
9− sha256 = "19kfclgpdyms016s06pjf3icj3mx9jlcj8vfgpbx2ac4ls0ir36g";
10− name = "acl2-${version}.tar.gz";
12+ src = fetchFromGitHub {
13+ owner = "acl2-devel";
14+ repo = "acl2-devel";
15+ rev = "${version}";
16+ sha256 = hashes."${version}";
1117 };
1218
13− buildInputs = [ sbcl ];
19+ buildInputs = [ sbcl
20+ # which perl nettools
21+ ];
22+
23+ enableParallelBuilding = true;
1424
1525 phases = "unpackPhase installPhase";
1626
@@ -18,18 +28,45 @@ stdenv.mkDerivation rec {
1828
1929 installPhase = ''
2030 mkdir -p $out/share/${installSuffix}
31+ mkdir -p $out/bin
2132 cp -R . $out/share/${installSuffix}
2233 cd $out/share/${installSuffix}
23− make 'LISP=${sbcl}/bin/sbcl --dynamic-space-size 2000'
24− make 'LISP=${sbcl}/bin/sbcl --dynamic-space-size 2000' regression
25− make LISP=${sbcl}/bin/sbcl TAGS
26− mkdir -p $out/bin
34+
35+ # make ACL2 image
36+ make LISP=${sbcl}/bin/sbcl
37+
38+ # The community books don't build properly under Nix yet.
39+ rm -rf books
40+ #make ACL2=$out/share/saved_acl2 USE_QUICKLISP=1 regression-everything
41+
2742 cp saved_acl2 $out/bin/acl2
2843 '';
2944
3045 meta = {
3146 description = "An interpreter and a prover for a Lisp dialect";
32− maintainers = with stdenv.lib.maintainers; [ raskin ];
47+ longDescription = ''
48+ ACL2 is a logic and programming language in which you can model
49+ computer systems, together with a tool to help you prove
50+ properties of those models. "ACL2" denotes "A Computational
51+ Logic for Applicative Common Lisp".
52+
53+ ACL2 is part of the Boyer-Moore family of provers, for which its
54+ authors have received the 2005 ACM Software System Award.
55+
56+ NOTE: In nixpkgs, the community books that usually ship with
57+ ACL2 have been removed because it is not currently possible to
58+ build them with Nix.
59+ '';
60+ homepage = http://www.cs.utexas.edu/users/moore/acl2/;
61+ downloadPage = https://github.com/acl2-devel/acl2-devel/releases;
62+ # There are a bunch of licenses in the community books, but since
63+ # they currently get deleted during the build, we don't mention
64+ # their licenses here. ACL2 proper is released under a BSD
65+ # 3-clause license.
66+ #license = with stdenv.lib.licenses;
67+ #[ free bsd3 mit gpl2 llgpl21 cc0 publicDomain ];
68+ license = stdenv.lib.licenses.bsd3;
69+ maintainers = with stdenv.lib.maintainers; [ kini raskin ];
3370 platforms = stdenv.lib.platforms.linux;
3471 };
3572}