git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #31264 from kini/acl2-update

acl2: 6.5 -> 7.4; sbcl: remove 1.2.0 and 1.3.12

commitaf7be86125fe34cd93ad120d26c749889cd648b7 authorMichael Raskin <7c6f434c@mail.ru> dateSat 4 Nov 2017, 23:17 (9 years ago) parentd715c0821db63d
5 files changed+52−210
lib/maintainers.nix+1 pkgs/development/compilers/sbcl/1.2.0.nix−84 pkgs/development/compilers/sbcl/1.3.12.nix−104 pkgs/development/interpreters/acl2/default.nix+50−13 pkgs/top-level/all-packages.nix+1−9
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/compilers/sbcl/1.2.0.nixdeleted−84
@@ -1,84 +0,0 @@
1−{ stdenv, fetchurl, sbclBootstrap, clisp}:
2−
3−stdenv.mkDerivation rec {
4− name = "sbcl-${version}";
5− version = "1.2.0";
6−
7− src = fetchurl {
8− url = "mirror://sourceforge/project/sbcl/sbcl/${version}/${name}-source.tar.bz2";
9− sha256 = "13k20sys1v4lvgis8cnbczww6zs93rw176vz07g4jx06418k53x2";
10− };
11−
12− buildInputs = [ ]
13− ++ (stdenv.lib.optional stdenv.isDarwin sbclBootstrap)
14− ++ (stdenv.lib.optional stdenv.isLinux clisp)
15− ;
16−
17− patchPhase = ''
18− echo '"${version}.nixos"' > version.lisp-expr
19− echo "
20− (lambda (features)
21− (flet ((enable (x)
22− (pushnew x features))
23− (disable (x)
24− (setf features (remove x features))))
25− (enable :sb-thread))) " > customize-target-features.lisp
26−
27− pwd
28−
29− # SBCL checks whether files are up-to-date in many places..
30− # Unfortunately, same timestamp is not good enough
31− sed -e 's@> x y@>= x y@' -i contrib/sb-aclrepl/repl.lisp
32− sed -e '/(date)/i((= date 2208988801) 2208988800)' -i contrib/asdf/asdf.lisp
33− sed -i src/cold/slam.lisp -e \
34− '/file-write-date input/a)'
35− sed -i src/cold/slam.lisp -e \
36− '/file-write-date output/i(or (and (= 2208988801 (file-write-date output)) (= 2208988801 (file-write-date input)))'
37− sed -i src/code/target-load.lisp -e \
38− '/date defaulted-fasl/a)'
39− sed -i src/code/target-load.lisp -e \
40− '/date defaulted-source/i(or (and (= 2208988801 (file-write-date defaulted-source-truename)) (= 2208988801 (file-write-date defaulted-fasl-truename)))'
41−
42− # Fix the tests
43− sed -e '/deftest pwent/inil' -i contrib/sb-posix/posix-tests.lisp
44− sed -e '/deftest grent/inil' -i contrib/sb-posix/posix-tests.lisp
45− sed -e '/deftest .*ent.non-existing/,+5d' -i contrib/sb-posix/posix-tests.lisp
46− sed -e '/deftest \(pw\|gr\)ent/,+3d' -i contrib/sb-posix/posix-tests.lisp
47−
48− sed -e '5,$d' -i contrib/sb-bsd-sockets/tests.lisp
49− sed -e '5,$d' -i contrib/sb-simple-streams/*test*.lisp
50−
51− # Use whatever `cc` the stdenv provides
52− substituteInPlace src/runtime/Config.x86-64-darwin --replace gcc cc
53−
54− substituteInPlace src/runtime/Config.x86-64-darwin \
55− --replace mmacosx-version-min=10.4 mmacosx-version-min=10.5
56− '';
57−
58− preBuild = ''
59− export INSTALL_ROOT=$out
60− mkdir -p test-home
61− export HOME=$PWD/test-home
62− '';
63−
64− buildPhase = if stdenv.isLinux
65− then ''
66− sh make.sh clisp --prefix=$out
67− ''
68− else ''
69− sh make.sh --prefix=$out --xc-host='${sbclBootstrap}/bin/sbcl --disable-debugger --no-userinit --no-sysinit'
70− '';
71−
72− installPhase = ''
73− INSTALL_ROOT=$out sh install.sh
74− '';
75−
76− meta = {
77− description = "Lisp compiler";
78− homepage = http://www.sbcl.org;
79− license = stdenv.lib.licenses.bsd3;
80− maintainers = [stdenv.lib.maintainers.raskin];
81− platforms = stdenv.lib.platforms.all;
82− inherit version;
83− };
84−}
pkgs/development/compilers/sbcl/1.3.12.nixdeleted−104
@@ -1,104 +0,0 @@
1−{ stdenv, fetchurl, writeText, sbclBootstrap
2−, sbclBootstrapHost ? "${sbclBootstrap}/bin/sbcl --disable-debugger --no-userinit --no-sysinit"
3−, threadSupport ? (stdenv.isi686 || stdenv.isx86_64)
4− # Meant for sbcl used for creating binaries portable to non-NixOS via save-lisp-and-die.
5− # Note that the created binaries still need `patchelf --set-interpreter ...`
6− # to get rid of ${glibc} dependency.
7−, purgeNixReferences ? false
8−}:
9−
10−stdenv.mkDerivation rec {
11− name = "sbcl-${version}";
12− version = "1.3.12";
13−
14− src = fetchurl {
15− url = "mirror://sourceforge/project/sbcl/sbcl/${version}/${name}-source.tar.bz2";
16− sha256 = "1hjr2xqazy4j0m58y4na6fz8ii3xflqairxy7vpd7ajbs00yqfc0";
17− };
18−
19− patchPhase = ''
20− echo '"${version}.nixos"' > version.lisp-expr
21− echo "
22− (lambda (features)
23− (flet ((enable (x)
24− (pushnew x features))
25− (disable (x)
26− (setf features (remove x features))))
27− ''
28− + (if threadSupport then "(enable :sb-thread)" else "(disable :sb-thread)")
29− + stdenv.lib.optionalString stdenv.isArm "(enable :arm)"
30− + ''
31− )) " > customize-target-features.lisp
32−
33− pwd
34−
35− # SBCL checks whether files are up-to-date in many places..
36− # Unfortunately, same timestamp is not good enough
37− sed -e 's@> x y@>= x y@' -i contrib/sb-aclrepl/repl.lisp
38− sed -e '/(date)/i((= date 2208988801) 2208988800)' -i contrib/asdf/asdf.lisp
39− sed -i src/cold/slam.lisp -e \
40− '/file-write-date input/a)'
41− sed -i src/cold/slam.lisp -e \
42− '/file-write-date output/i(or (and (= 2208988801 (file-write-date output)) (= 2208988801 (file-write-date input)))'
43− sed -i src/code/target-load.lisp -e \
44− '/date defaulted-fasl/a)'
45− sed -i src/code/target-load.lisp -e \
46− '/date defaulted-source/i(or (and (= 2208988801 (file-write-date defaulted-source-truename)) (= 2208988801 (file-write-date defaulted-fasl-truename)))'
47−
48− # Fix the tests
49− sed -e '/deftest pwent/inil' -i contrib/sb-posix/posix-tests.lisp
50− sed -e '/deftest grent/inil' -i contrib/sb-posix/posix-tests.lisp
51− sed -e '/deftest .*ent.non-existing/,+5d' -i contrib/sb-posix/posix-tests.lisp
52− sed -e '/deftest \(pw\|gr\)ent/,+3d' -i contrib/sb-posix/posix-tests.lisp
53−
54− sed -e '5,$d' -i contrib/sb-bsd-sockets/tests.lisp
55− sed -e '5,$d' -i contrib/sb-simple-streams/*test*.lisp
56−
57− # Use whatever `cc` the stdenv provides
58− substituteInPlace src/runtime/Config.x86-64-darwin --replace gcc cc
59−
60− substituteInPlace src/runtime/Config.x86-64-darwin \
61− --replace mmacosx-version-min=10.4 mmacosx-version-min=10.5
62− ''
63− + (if purgeNixReferences
64− then
65− # This is the default location to look for the core; by default in $out/lib/sbcl
66− ''
67− sed 's@^\(#define SBCL_HOME\) .*$@\1 "/no-such-path"@' \
68− -i src/runtime/runtime.c
69− ''
70− else
71− # Fix software version retrieval
72− ''
73− sed -e "s@/bin/uname@$(command -v uname)@g" -i src/code/*-os.lisp
74− ''
75− );
76−
77−
78− preBuild = ''
79− export INSTALL_ROOT=$out
80− mkdir -p test-home
81− export HOME=$PWD/test-home
82− '';
83−
84− buildPhase = ''
85− sh make.sh --prefix=$out --xc-host="${sbclBootstrapHost}"
86− '';
87−
88− installPhase = ''
89− INSTALL_ROOT=$out sh install.sh
90− '';
91−
92− # Specifying $SBCL_HOME is only truly needed with `purgeNixReferences = true`.
93− setupHook = writeText "setupHook.sh" ''
94− envHooks+=(_setSbclHome)
95− _setSbclHome() {
96− export SBCL_HOME='@out@/lib/sbcl/'
97− }
98− '';
99−
100− meta = sbclBootstrap.meta // {
101− inherit version;
102− updateWalker = true;
103− };
104−}
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−9
@@ -6238,12 +6238,6 @@ with pkgs;
62386238
62396239 sbclBootstrap = callPackage ../development/compilers/sbcl/bootstrap.nix {};
62406240 sbcl = callPackage ../development/compilers/sbcl {};
6241− # For Maxima
6242− sbcl_1_3_12 = callPackage ../development/compilers/sbcl/1.3.12.nix { };
6243− # For ACL2
6244− sbcl_1_2_0 = callPackage ../development/compilers/sbcl/1.2.0.nix {
6245− clisp = clisp;
6246− };
62476241
62486242 scala_2_9 = callPackage ../development/compilers/scala/2.9.nix { };
62496243 scala_2_10 = callPackage ../development/compilers/scala/2.10.nix { };
@@ -6366,9 +6360,7 @@ with pkgs;
63666360
63676361 ### DEVELOPMENT / INTERPRETERS
63686362
6369− acl2 = callPackage ../development/interpreters/acl2 {
6370− sbcl = sbcl_1_2_0;
6371− };
6363+ acl2 = callPackage ../development/interpreters/acl2 { };
63726364
63736365 angelscript = callPackage ../development/interpreters/angelscript {};
63746366