git.iko.soy/typeable/nixpkgs
on master help sign in
acl2: 6.5 -> 7.4, refactor

The `make regression` line was failing because the expression was downloading a core-system-only, no-libraries source tarball. I switched to using fetchFromGitHub, which downloads the full source code -- the core system as well as the "community books", i.e. libraries -- but the libraries unfortunately do not build yet because they have more dependencies than the core system, and they also run into some impurity problems during the build process. This commit changes the ACL2 package so that at least the user will obtain the latest version of the core system, even though they won't get the community books. In a later commit I hope to fix this; it will require either changes to ACL2 itself, or a patch to be applied to ACL2 in nixpkgs. ACL2 7.4 has no trouble building on the current version of SBCL in nixpkgs, so I let it do so instead of using the ancient SBCL version 1.2.0 from 2014. I also added myself as a maintainer to this package, since I'm an active contributor to the ACL2 project and am interested in seeing it working on Nix.

commit0094ca20cc224085d9479c614bfed52172c93b4b authorKeshav Kini <keshav.kini@gmail.com> dateSat 4 Nov 2017, 10:45 (9 years ago) parentaf3a11b
3 files changed+52−16
lib/maintainers.nix+1 pkgs/development/interpreters/acl2/default.nix+50−13 pkgs/top-level/all-packages.nix+1−3
lib/maintainers.nix+1
@@ -328,6 +328,7 @@
328328 KibaFox = "Kiba Fox <kiba.fox@foxypossibilities.com>";
329329 kierdavis = "Kier Davis <kierdavis@gmail.com>";
330330 kiloreux = "Kiloreux Emperex <kiloreux@gmail.com>";
331+ kini = "Keshav Kini <keshav.kini@gmail.com>";
331332 kkallio = "Karn Kallio <tierpluspluslists@gmail.com>";
332333 knedlsepp = "Josef Kemetmüller <josef.kemetmueller@gmail.com>";
333334 konimex = "Muhammad Herdiansyah <herdiansyah@netc.eu>";
pkgs/development/interpreters/acl2/default.nix+50−13
@@ -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}
pkgs/top-level/all-packages.nix+1−3
@@ -6362,9 +6362,7 @@ with pkgs;
63626362
63636363 ### DEVELOPMENT / INTERPRETERS
63646364
6365− acl2 = callPackage ../development/interpreters/acl2 {
6366− sbcl = sbcl_1_2_0;
6367− };
6365+ acl2 = callPackage ../development/interpreters/acl2 { };
63686366
63696367 angelscript = callPackage ../development/interpreters/angelscript {};
63706368