2021-08-15 02:00:27 +02:00
|
|
|
{ lib, stdenv, callPackage, fetchFromGitHub, runCommandLocal, makeWrapper, substituteAll
|
2021-11-12 05:20:00 +01:00
|
|
|
, sbcl, bash, which, perl, hostname
|
2022-01-12 00:40:02 +01:00
|
|
|
, openssl, glucose, minisat, abc-verifier, z3, python2
|
acl2, acl2-minimal: build standard library, init
Before this commit, we only built the main ACL2 executable. Most users
will also want the standard library (the "Community Books"), so after
this commit, we build the entire `make everything` suite, which includes
essentially everything provided in the ACL2 repository.
There's also a new top-level package called `acl2-minimal` which has
just the core ACL2 executable, for those who really only want that.
Future work: modularize the build so that we can support multiple
different subsets of the standard library. A lot of the stuff in this
complete build is probably superfluous to almost all users. Also,
because some of the books have unclear or idiosyncratic licenses, the
full build will not be cached on cache.nixos.org, and installing it will
mean spending a few hours building it. So it would be good to have a
pared down build which excluded non-free books and things that people
rarely or never use.
2020-02-24 06:12:37 +01:00
|
|
|
, certifyBooks ? true
|
|
|
|
} @ args:
|
|
|
|
|
|
|
|
let
|
2021-08-15 02:00:27 +02:00
|
|
|
# Disable immobile space so we don't run out of memory on large books, and
|
|
|
|
# supply 2GB of dynamic space to avoid exhausting the heap while building the
|
|
|
|
# ACL2 system itself; see
|
2020-10-02 09:58:50 +02:00
|
|
|
# https://www.cs.utexas.edu/users/moore/acl2/current/HTML/installation/requirements.html#Obtaining-SBCL
|
2021-08-15 02:00:27 +02:00
|
|
|
sbcl' = args.sbcl.override { disableImmobileSpace = true; };
|
2022-07-14 20:19:49 +02:00
|
|
|
sbcl = runCommandLocal args.sbcl.name { nativeBuildInputs = [ makeWrapper ]; } ''
|
2021-08-15 02:00:27 +02:00
|
|
|
makeWrapper ${sbcl'}/bin/sbcl $out/bin/sbcl \
|
|
|
|
--add-flags "--dynamic-space-size 2000"
|
|
|
|
'';
|
acl2, acl2-minimal: build standard library, init
Before this commit, we only built the main ACL2 executable. Most users
will also want the standard library (the "Community Books"), so after
this commit, we build the entire `make everything` suite, which includes
essentially everything provided in the ACL2 repository.
There's also a new top-level package called `acl2-minimal` which has
just the core ACL2 executable, for those who really only want that.
Future work: modularize the build so that we can support multiple
different subsets of the standard library. A lot of the stuff in this
complete build is probably superfluous to almost all users. Also,
because some of the books have unclear or idiosyncratic licenses, the
full build will not be cached on cache.nixos.org, and installing it will
mean spending a few hours building it. So it would be good to have a
pared down build which excluded non-free books and things that people
rarely or never use.
2020-02-24 06:12:37 +01:00
|
|
|
|
2017-11-04 18:45:34 +01:00
|
|
|
in stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "acl2";
|
2022-07-27 22:10:17 +02:00
|
|
|
version = "8.5";
|
2009-08-13 16:32:52 +02:00
|
|
|
|
2017-11-04 18:45:34 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "acl2-devel";
|
|
|
|
repo = "acl2-devel";
|
2020-11-01 23:39:49 +01:00
|
|
|
rev = version;
|
2022-07-27 22:10:17 +02:00
|
|
|
sha256 = "12cv5ms1j3vfrq066km020nwxb6x2dzh12g8nz6xxyxysn44wzzi";
|
2009-08-13 16:32:52 +02:00
|
|
|
};
|
|
|
|
|
2021-08-15 02:00:27 +02:00
|
|
|
# You can swap this out with any other IPASIR implementation at
|
|
|
|
# build time by using overrideAttrs (make sure the derivation you
|
|
|
|
# use has a "libname" attribute so we can plug it into the patch
|
|
|
|
# below). Or, you can override it at runtime by setting the
|
|
|
|
# $IPASIR_SHARED_LIBRARY environment variable.
|
|
|
|
libipasir = callPackage ./libipasirglucose4 { };
|
acl2, acl2-minimal: build standard library, init
Before this commit, we only built the main ACL2 executable. Most users
will also want the standard library (the "Community Books"), so after
this commit, we build the entire `make everything` suite, which includes
essentially everything provided in the ACL2 repository.
There's also a new top-level package called `acl2-minimal` which has
just the core ACL2 executable, for those who really only want that.
Future work: modularize the build so that we can support multiple
different subsets of the standard library. A lot of the stuff in this
complete build is probably superfluous to almost all users. Also,
because some of the books have unclear or idiosyncratic licenses, the
full build will not be cached on cache.nixos.org, and installing it will
mean spending a few hours building it. So it would be good to have a
pared down build which excluded non-free books and things that people
rarely or never use.
2020-02-24 06:12:37 +01:00
|
|
|
|
2021-08-15 02:00:27 +02:00
|
|
|
patches = [(substituteAll {
|
|
|
|
src = ./0001-Fix-some-paths-for-Nix-build.patch;
|
|
|
|
libipasir = "${libipasir}/lib/${libipasir.libname}";
|
treewide: use lib.getLib for OpenSSL libraries
At some point, I'd like to make another attempt at
71f1f4884b5 ("openssl: stop static binaries referencing libs"), which
was reverted in 195c7da07df. One problem with my previous attempt is
that I moved OpenSSL's libraries to a lib output, but many dependent
packages were hardcoding the out output as the location of the
libraries. This patch fixes every such case I could find in the tree.
It won't have any effect immediately, but will mean these packages
will automatically use an OpenSSL lib output if it is reintroduced in
future.
This patch should cause very few rebuilds, because it shouldn't make
any change at all to most packages I'm touching. The few rebuilds
that are introduced come from when I've changed a package builder not
to use variable names like openssl.out in scripts / substitution
patterns, which would be confusing since they don't hardcode the
output any more.
I started by making the following global replacements:
${pkgs.openssl.out}/lib -> ${lib.getLib pkgs.openssl}/lib
${openssl.out}/lib -> ${lib.getLib openssl}/lib
Then I removed the ".out" suffix when part of the argument to
lib.makeLibraryPath, since that function uses lib.getLib internally.
Then I fixed up cases where openssl was part of the -L flag to the
compiler/linker, since that unambigously is referring to libraries.
Then I manually investigated and fixed the following packages:
- pycurl
- citrix-workspace
- ppp
- wraith
- unbound
- gambit
- acl2
I'm reasonably confindent in my fixes for all of them.
For acl2, since the openssl library paths are manually provided above
anyway, I don't think openssl is required separately as a build input
at all. Removing it doesn't make a difference to the output size, the
file list, or the closure.
I've tested evaluation with the OfBorg meta checks, to protect against
introducing evaluation failures.
2022-03-25 16:33:21 +01:00
|
|
|
libssl = "${lib.getLib openssl}/lib/libssl${stdenv.hostPlatform.extensions.sharedLibrary}";
|
|
|
|
libcrypto = "${lib.getLib openssl}/lib/libcrypto${stdenv.hostPlatform.extensions.sharedLibrary}";
|
2021-08-15 02:00:27 +02:00
|
|
|
})];
|
2017-11-04 18:45:34 +01:00
|
|
|
|
2022-07-14 20:19:49 +02:00
|
|
|
nativeBuildInputs = lib.optional certifyBooks makeWrapper;
|
|
|
|
|
acl2, acl2-minimal: build standard library, init
Before this commit, we only built the main ACL2 executable. Most users
will also want the standard library (the "Community Books"), so after
this commit, we build the entire `make everything` suite, which includes
essentially everything provided in the ACL2 repository.
There's also a new top-level package called `acl2-minimal` which has
just the core ACL2 executable, for those who really only want that.
Future work: modularize the build so that we can support multiple
different subsets of the standard library. A lot of the stuff in this
complete build is probably superfluous to almost all users. Also,
because some of the books have unclear or idiosyncratic licenses, the
full build will not be cached on cache.nixos.org, and installing it will
mean spending a few hours building it. So it would be good to have a
pared down build which excluded non-free books and things that people
rarely or never use.
2020-02-24 06:12:37 +01:00
|
|
|
buildInputs = [
|
|
|
|
# ACL2 itself only needs a Common Lisp compiler/interpreter:
|
|
|
|
sbcl
|
2021-01-23 14:15:07 +01:00
|
|
|
] ++ lib.optionals certifyBooks [
|
acl2, acl2-minimal: build standard library, init
Before this commit, we only built the main ACL2 executable. Most users
will also want the standard library (the "Community Books"), so after
this commit, we build the entire `make everything` suite, which includes
essentially everything provided in the ACL2 repository.
There's also a new top-level package called `acl2-minimal` which has
just the core ACL2 executable, for those who really only want that.
Future work: modularize the build so that we can support multiple
different subsets of the standard library. A lot of the stuff in this
complete build is probably superfluous to almost all users. Also,
because some of the books have unclear or idiosyncratic licenses, the
full build will not be cached on cache.nixos.org, and installing it will
mean spending a few hours building it. So it would be good to have a
pared down build which excluded non-free books and things that people
rarely or never use.
2020-02-24 06:12:37 +01:00
|
|
|
# To build community books, we need Perl and a couple of utilities:
|
2022-07-14 20:19:49 +02:00
|
|
|
which perl hostname
|
acl2, acl2-minimal: build standard library, init
Before this commit, we only built the main ACL2 executable. Most users
will also want the standard library (the "Community Books"), so after
this commit, we build the entire `make everything` suite, which includes
essentially everything provided in the ACL2 repository.
There's also a new top-level package called `acl2-minimal` which has
just the core ACL2 executable, for those who really only want that.
Future work: modularize the build so that we can support multiple
different subsets of the standard library. A lot of the stuff in this
complete build is probably superfluous to almost all users. Also,
because some of the books have unclear or idiosyncratic licenses, the
full build will not be cached on cache.nixos.org, and installing it will
mean spending a few hours building it. So it would be good to have a
pared down build which excluded non-free books and things that people
rarely or never use.
2020-02-24 06:12:37 +01:00
|
|
|
# Some of the books require one or more of these external tools:
|
treewide: use lib.getLib for OpenSSL libraries
At some point, I'd like to make another attempt at
71f1f4884b5 ("openssl: stop static binaries referencing libs"), which
was reverted in 195c7da07df. One problem with my previous attempt is
that I moved OpenSSL's libraries to a lib output, but many dependent
packages were hardcoding the out output as the location of the
libraries. This patch fixes every such case I could find in the tree.
It won't have any effect immediately, but will mean these packages
will automatically use an OpenSSL lib output if it is reintroduced in
future.
This patch should cause very few rebuilds, because it shouldn't make
any change at all to most packages I'm touching. The few rebuilds
that are introduced come from when I've changed a package builder not
to use variable names like openssl.out in scripts / substitution
patterns, which would be confusing since they don't hardcode the
output any more.
I started by making the following global replacements:
${pkgs.openssl.out}/lib -> ${lib.getLib pkgs.openssl}/lib
${openssl.out}/lib -> ${lib.getLib openssl}/lib
Then I removed the ".out" suffix when part of the argument to
lib.makeLibraryPath, since that function uses lib.getLib internally.
Then I fixed up cases where openssl was part of the -L flag to the
compiler/linker, since that unambigously is referring to libraries.
Then I manually investigated and fixed the following packages:
- pycurl
- citrix-workspace
- ppp
- wraith
- unbound
- gambit
- acl2
I'm reasonably confindent in my fixes for all of them.
For acl2, since the openssl library paths are manually provided above
anyway, I don't think openssl is required separately as a build input
at all. Removing it doesn't make a difference to the output size, the
file list, or the closure.
I've tested evaluation with the OfBorg meta checks, to protect against
introducing evaluation failures.
2022-03-25 16:33:21 +01:00
|
|
|
glucose minisat abc-verifier libipasir
|
2022-01-12 00:40:02 +01:00
|
|
|
z3 (python2.withPackages (ps: [ ps.z3 ]))
|
acl2, acl2-minimal: build standard library, init
Before this commit, we only built the main ACL2 executable. Most users
will also want the standard library (the "Community Books"), so after
this commit, we build the entire `make everything` suite, which includes
essentially everything provided in the ACL2 repository.
There's also a new top-level package called `acl2-minimal` which has
just the core ACL2 executable, for those who really only want that.
Future work: modularize the build so that we can support multiple
different subsets of the standard library. A lot of the stuff in this
complete build is probably superfluous to almost all users. Also,
because some of the books have unclear or idiosyncratic licenses, the
full build will not be cached on cache.nixos.org, and installing it will
mean spending a few hours building it. So it would be good to have a
pared down build which excluded non-free books and things that people
rarely or never use.
2020-02-24 06:12:37 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
# NOTE: Parallel building can be memory-intensive depending on the number of
|
|
|
|
# concurrent jobs. For example, this build has been seen to use >120GB of
|
|
|
|
# RAM on an 85 core machine.
|
2017-11-04 18:45:34 +01:00
|
|
|
enableParallelBuilding = true;
|
2009-08-13 16:32:52 +02:00
|
|
|
|
acl2, acl2-minimal: build standard library, init
Before this commit, we only built the main ACL2 executable. Most users
will also want the standard library (the "Community Books"), so after
this commit, we build the entire `make everything` suite, which includes
essentially everything provided in the ACL2 repository.
There's also a new top-level package called `acl2-minimal` which has
just the core ACL2 executable, for those who really only want that.
Future work: modularize the build so that we can support multiple
different subsets of the standard library. A lot of the stuff in this
complete build is probably superfluous to almost all users. Also,
because some of the books have unclear or idiosyncratic licenses, the
full build will not be cached on cache.nixos.org, and installing it will
mean spending a few hours building it. So it would be good to have a
pared down build which excluded non-free books and things that people
rarely or never use.
2020-02-24 06:12:37 +01:00
|
|
|
preConfigure = ''
|
|
|
|
# When certifying books, ACL2 doesn't like $HOME not existing.
|
|
|
|
export HOME=$(pwd)/fake-home
|
2021-01-23 14:15:07 +01:00
|
|
|
'' + lib.optionalString certifyBooks ''
|
acl2, acl2-minimal: build standard library, init
Before this commit, we only built the main ACL2 executable. Most users
will also want the standard library (the "Community Books"), so after
this commit, we build the entire `make everything` suite, which includes
essentially everything provided in the ACL2 repository.
There's also a new top-level package called `acl2-minimal` which has
just the core ACL2 executable, for those who really only want that.
Future work: modularize the build so that we can support multiple
different subsets of the standard library. A lot of the stuff in this
complete build is probably superfluous to almost all users. Also,
because some of the books have unclear or idiosyncratic licenses, the
full build will not be cached on cache.nixos.org, and installing it will
mean spending a few hours building it. So it would be good to have a
pared down build which excluded non-free books and things that people
rarely or never use.
2020-02-24 06:12:37 +01:00
|
|
|
# Some books also care about $USER being nonempty.
|
|
|
|
export USER=nobody
|
|
|
|
'';
|
2009-08-13 16:32:52 +02:00
|
|
|
|
acl2, acl2-minimal: build standard library, init
Before this commit, we only built the main ACL2 executable. Most users
will also want the standard library (the "Community Books"), so after
this commit, we build the entire `make everything` suite, which includes
essentially everything provided in the ACL2 repository.
There's also a new top-level package called `acl2-minimal` which has
just the core ACL2 executable, for those who really only want that.
Future work: modularize the build so that we can support multiple
different subsets of the standard library. A lot of the stuff in this
complete build is probably superfluous to almost all users. Also,
because some of the books have unclear or idiosyncratic licenses, the
full build will not be cached on cache.nixos.org, and installing it will
mean spending a few hours building it. So it would be good to have a
pared down build which excluded non-free books and things that people
rarely or never use.
2020-02-24 06:12:37 +01:00
|
|
|
postConfigure = ''
|
|
|
|
# ACL2 and its books need to be built in place in the out directory because
|
|
|
|
# the proof artifacts are not relocatable. Since ACL2 mostly expects
|
|
|
|
# everything to exist in the original source tree layout, we put it in
|
|
|
|
# $out/share/${pname} and create symlinks in $out/bin as necessary.
|
|
|
|
mkdir -p $out/share/${pname}
|
|
|
|
cp -pR . $out/share/${pname}
|
|
|
|
cd $out/share/${pname}
|
|
|
|
'';
|
|
|
|
|
|
|
|
preBuild = "mkdir -p $HOME";
|
2022-10-03 15:56:51 +02:00
|
|
|
makeFlags = [ "LISP=${sbcl}/bin/sbcl" "ACL2_MAKE_LOG=NONE" ];
|
acl2, acl2-minimal: build standard library, init
Before this commit, we only built the main ACL2 executable. Most users
will also want the standard library (the "Community Books"), so after
this commit, we build the entire `make everything` suite, which includes
essentially everything provided in the ACL2 repository.
There's also a new top-level package called `acl2-minimal` which has
just the core ACL2 executable, for those who really only want that.
Future work: modularize the build so that we can support multiple
different subsets of the standard library. A lot of the stuff in this
complete build is probably superfluous to almost all users. Also,
because some of the books have unclear or idiosyncratic licenses, the
full build will not be cached on cache.nixos.org, and installing it will
mean spending a few hours building it. So it would be good to have a
pared down build which excluded non-free books and things that people
rarely or never use.
2020-02-24 06:12:37 +01:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "mini-proveall";
|
2016-01-24 13:49:33 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
2017-11-04 18:45:34 +01:00
|
|
|
mkdir -p $out/bin
|
acl2, acl2-minimal: build standard library, init
Before this commit, we only built the main ACL2 executable. Most users
will also want the standard library (the "Community Books"), so after
this commit, we build the entire `make everything` suite, which includes
essentially everything provided in the ACL2 repository.
There's also a new top-level package called `acl2-minimal` which has
just the core ACL2 executable, for those who really only want that.
Future work: modularize the build so that we can support multiple
different subsets of the standard library. A lot of the stuff in this
complete build is probably superfluous to almost all users. Also,
because some of the books have unclear or idiosyncratic licenses, the
full build will not be cached on cache.nixos.org, and installing it will
mean spending a few hours building it. So it would be good to have a
pared down build which excluded non-free books and things that people
rarely or never use.
2020-02-24 06:12:37 +01:00
|
|
|
ln -s $out/share/${pname}/saved_acl2 $out/bin/${pname}
|
2021-01-23 14:15:07 +01:00
|
|
|
'' + lib.optionalString certifyBooks ''
|
acl2, acl2-minimal: build standard library, init
Before this commit, we only built the main ACL2 executable. Most users
will also want the standard library (the "Community Books"), so after
this commit, we build the entire `make everything` suite, which includes
essentially everything provided in the ACL2 repository.
There's also a new top-level package called `acl2-minimal` which has
just the core ACL2 executable, for those who really only want that.
Future work: modularize the build so that we can support multiple
different subsets of the standard library. A lot of the stuff in this
complete build is probably superfluous to almost all users. Also,
because some of the books have unclear or idiosyncratic licenses, the
full build will not be cached on cache.nixos.org, and installing it will
mean spending a few hours building it. So it would be good to have a
pared down build which excluded non-free books and things that people
rarely or never use.
2020-02-24 06:12:37 +01:00
|
|
|
ln -s $out/share/${pname}/books/build/cert.pl $out/bin/${pname}-cert
|
|
|
|
ln -s $out/share/${pname}/books/build/clean.pl $out/bin/${pname}-clean
|
|
|
|
'';
|
2017-11-04 18:45:34 +01:00
|
|
|
|
acl2, acl2-minimal: build standard library, init
Before this commit, we only built the main ACL2 executable. Most users
will also want the standard library (the "Community Books"), so after
this commit, we build the entire `make everything` suite, which includes
essentially everything provided in the ACL2 repository.
There's also a new top-level package called `acl2-minimal` which has
just the core ACL2 executable, for those who really only want that.
Future work: modularize the build so that we can support multiple
different subsets of the standard library. A lot of the stuff in this
complete build is probably superfluous to almost all users. Also,
because some of the books have unclear or idiosyncratic licenses, the
full build will not be cached on cache.nixos.org, and installing it will
mean spending a few hours building it. So it would be good to have a
pared down build which excluded non-free books and things that people
rarely or never use.
2020-02-24 06:12:37 +01:00
|
|
|
preDistPhases = [ (if certifyBooks then "certifyBooksPhase" else "removeBooksPhase") ];
|
2017-11-04 18:45:34 +01:00
|
|
|
|
acl2, acl2-minimal: build standard library, init
Before this commit, we only built the main ACL2 executable. Most users
will also want the standard library (the "Community Books"), so after
this commit, we build the entire `make everything` suite, which includes
essentially everything provided in the ACL2 repository.
There's also a new top-level package called `acl2-minimal` which has
just the core ACL2 executable, for those who really only want that.
Future work: modularize the build so that we can support multiple
different subsets of the standard library. A lot of the stuff in this
complete build is probably superfluous to almost all users. Also,
because some of the books have unclear or idiosyncratic licenses, the
full build will not be cached on cache.nixos.org, and installing it will
mean spending a few hours building it. So it would be good to have a
pared down build which excluded non-free books and things that people
rarely or never use.
2020-02-24 06:12:37 +01:00
|
|
|
certifyBooksPhase = ''
|
|
|
|
# Certify the community books
|
|
|
|
pushd $out/share/${pname}/books
|
|
|
|
makeFlags="ACL2=$out/share/${pname}/saved_acl2"
|
2021-08-15 02:00:27 +02:00
|
|
|
buildFlags="all"
|
acl2, acl2-minimal: build standard library, init
Before this commit, we only built the main ACL2 executable. Most users
will also want the standard library (the "Community Books"), so after
this commit, we build the entire `make everything` suite, which includes
essentially everything provided in the ACL2 repository.
There's also a new top-level package called `acl2-minimal` which has
just the core ACL2 executable, for those who really only want that.
Future work: modularize the build so that we can support multiple
different subsets of the standard library. A lot of the stuff in this
complete build is probably superfluous to almost all users. Also,
because some of the books have unclear or idiosyncratic licenses, the
full build will not be cached on cache.nixos.org, and installing it will
mean spending a few hours building it. So it would be good to have a
pared down build which excluded non-free books and things that people
rarely or never use.
2020-02-24 06:12:37 +01:00
|
|
|
buildPhase
|
2021-08-15 02:00:27 +02:00
|
|
|
|
|
|
|
# Clean up some stuff to save space
|
|
|
|
find -name '*@useless-runes.lsp' -execdir rm {} + # saves ~1GB of space
|
2021-08-15 23:05:37 +02:00
|
|
|
find -name '*.cert.out' -execdir gzip {} + # saves ~400MB of space
|
2021-08-15 02:00:27 +02:00
|
|
|
|
acl2, acl2-minimal: build standard library, init
Before this commit, we only built the main ACL2 executable. Most users
will also want the standard library (the "Community Books"), so after
this commit, we build the entire `make everything` suite, which includes
essentially everything provided in the ACL2 repository.
There's also a new top-level package called `acl2-minimal` which has
just the core ACL2 executable, for those who really only want that.
Future work: modularize the build so that we can support multiple
different subsets of the standard library. A lot of the stuff in this
complete build is probably superfluous to almost all users. Also,
because some of the books have unclear or idiosyncratic licenses, the
full build will not be cached on cache.nixos.org, and installing it will
mean spending a few hours building it. So it would be good to have a
pared down build which excluded non-free books and things that people
rarely or never use.
2020-02-24 06:12:37 +01:00
|
|
|
popd
|
|
|
|
'';
|
2017-11-04 18:45:34 +01:00
|
|
|
|
acl2, acl2-minimal: build standard library, init
Before this commit, we only built the main ACL2 executable. Most users
will also want the standard library (the "Community Books"), so after
this commit, we build the entire `make everything` suite, which includes
essentially everything provided in the ACL2 repository.
There's also a new top-level package called `acl2-minimal` which has
just the core ACL2 executable, for those who really only want that.
Future work: modularize the build so that we can support multiple
different subsets of the standard library. A lot of the stuff in this
complete build is probably superfluous to almost all users. Also,
because some of the books have unclear or idiosyncratic licenses, the
full build will not be cached on cache.nixos.org, and installing it will
mean spending a few hours building it. So it would be good to have a
pared down build which excluded non-free books and things that people
rarely or never use.
2020-02-24 06:12:37 +01:00
|
|
|
removeBooksPhase = ''
|
|
|
|
# Delete the community books
|
|
|
|
rm -rf $out/share/${pname}/books
|
2016-01-24 13:49:33 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-23 14:15:07 +01:00
|
|
|
meta = with lib; {
|
2009-08-13 16:32:52 +02:00
|
|
|
description = "An interpreter and a prover for a Lisp dialect";
|
2017-11-04 18:45:34 +01:00
|
|
|
longDescription = ''
|
acl2, acl2-minimal: build standard library, init
Before this commit, we only built the main ACL2 executable. Most users
will also want the standard library (the "Community Books"), so after
this commit, we build the entire `make everything` suite, which includes
essentially everything provided in the ACL2 repository.
There's also a new top-level package called `acl2-minimal` which has
just the core ACL2 executable, for those who really only want that.
Future work: modularize the build so that we can support multiple
different subsets of the standard library. A lot of the stuff in this
complete build is probably superfluous to almost all users. Also,
because some of the books have unclear or idiosyncratic licenses, the
full build will not be cached on cache.nixos.org, and installing it will
mean spending a few hours building it. So it would be good to have a
pared down build which excluded non-free books and things that people
rarely or never use.
2020-02-24 06:12:37 +01:00
|
|
|
ACL2 is a logic and programming language in which you can model computer
|
|
|
|
systems, together with a tool to help you prove properties of those
|
|
|
|
models. "ACL2" denotes "A Computational Logic for Applicative Common
|
|
|
|
Lisp".
|
|
|
|
|
|
|
|
ACL2 is part of the Boyer-Moore family of provers, for which its authors
|
|
|
|
have received the 2005 ACM Software System Award.
|
|
|
|
|
|
|
|
This package installs the main ACL2 executable ${pname}, as well as the
|
|
|
|
build tools cert.pl and clean.pl, renamed to ${pname}-cert and
|
|
|
|
${pname}-clean.
|
|
|
|
|
|
|
|
'' + (if certifyBooks then ''
|
|
|
|
The community books are also included and certified with the `make
|
|
|
|
everything` target.
|
|
|
|
'' else ''
|
|
|
|
The community books are not included in this package.
|
|
|
|
'');
|
2020-10-02 09:58:50 +02:00
|
|
|
homepage = "https://www.cs.utexas.edu/users/moore/acl2/";
|
2020-04-01 03:11:51 +02:00
|
|
|
downloadPage = "https://github.com/acl2-devel/acl2-devel/releases";
|
acl2, acl2-minimal: build standard library, init
Before this commit, we only built the main ACL2 executable. Most users
will also want the standard library (the "Community Books"), so after
this commit, we build the entire `make everything` suite, which includes
essentially everything provided in the ACL2 repository.
There's also a new top-level package called `acl2-minimal` which has
just the core ACL2 executable, for those who really only want that.
Future work: modularize the build so that we can support multiple
different subsets of the standard library. A lot of the stuff in this
complete build is probably superfluous to almost all users. Also,
because some of the books have unclear or idiosyncratic licenses, the
full build will not be cached on cache.nixos.org, and installing it will
mean spending a few hours building it. So it would be good to have a
pared down build which excluded non-free books and things that people
rarely or never use.
2020-02-24 06:12:37 +01:00
|
|
|
license = with licenses; [
|
|
|
|
# ACL2 itself is bsd3
|
|
|
|
bsd3
|
|
|
|
] ++ optionals certifyBooks [
|
|
|
|
# The community books are mostly bsd3 or mit but with a few
|
|
|
|
# other things thrown in.
|
|
|
|
mit gpl2 llgpl21 cc0 publicDomain unfreeRedistributable
|
|
|
|
];
|
|
|
|
maintainers = with maintainers; [ kini raskin ];
|
|
|
|
platforms = platforms.all;
|
2009-08-13 16:32:52 +02:00
|
|
|
};
|
|
|
|
}
|