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

46 lines
1.1 KiB
Nix
Raw Normal View History

a :
let
fetchurl = a.fetchurl;
2014-09-01 05:11:32 +00:00
version = a.lib.attrByPath ["version"] "v6-5" a;
buildInputs = with a; [
sbcl
];
in
rec {
src = fetchurl {
url = "http://www.cs.utexas.edu/users/moore/acl2/${version}/distrib/acl2.tar.gz";
2014-09-01 05:11:32 +00:00
sha256 = "19kfclgpdyms016s06pjf3icj3mx9jlcj8vfgpbx2ac4ls0ir36g";
name = "acl2-${version}.tar.gz";
};
inherit buildInputs;
configureFlags = [];
/* doConfigure should be removed if not needed */
phaseNames = ["doDeploy" "doBuild"];
makeFlags = ["LISP='${a.sbcl}/bin/sbcl'"];
installSuffix = "acl2";
doDeploy = (a.simplyShare installSuffix);
doBuild = a.fullDepEntry (''
cd $out/share/${installSuffix}
make LISP='${a.sbcl}/bin/sbcl --dynamic-space-size 2000'
make LISP='${a.sbcl}/bin/sbcl --dynamic-space-size 2000' regression
mkdir -p "$out/bin"
cp saved_acl2 "$out/bin/acl2"
'') ["doDeploy" "addInputs" "defEnsureDir"];
name = "acl2-" + version;
meta = {
description = "An interpreter and a prover for a Lisp dialect";
maintainers = with a.lib.maintainers;
[
raskin
];
platforms = with a.lib.platforms;
linux;
};
}