git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #48159 from Zimmi48/remove-camlp5-transitional

Remove camlp5 transitional

commitc45a6fa041d798755c87cc0092fdb3f0bb775f02 authorJörg Thalheim <Mic92@users.noreply.github.com> dateThu 11 Oct 2018, 00:31 (8 years ago) parentbde44832fdd38e
9 files changed+13−148
pkgs/applications/science/logic/coq/default.nix+3−4 pkgs/applications/science/logic/prooftree/default.nix+2−2 pkgs/development/ocaml-modules/elpi/default.nix+2−2 pkgs/development/ocaml-modules/ulex/0.8/camlp5.patch−72 pkgs/development/ocaml-modules/ulex/0.8/default.nix−36 pkgs/development/ocaml-modules/ulex/0.8/meta_version.patch−10 pkgs/top-level/all-packages.nix+1−4 pkgs/top-level/coq-packages.nix+1−2 pkgs/top-level/ocaml-packages.nix+4−16
pkgs/applications/science/logic/coq/default.nix+3−4
@@ -27,7 +27,6 @@ let
2727 "8.8.2" = "1lip3xja924dm6qblisk1bk0x8ai24s5xxqxphbdxj6djglj68fd";
2828 }."${version}";
2929 coq-version = builtins.substring 0 3 version;
30− camlp5 = ocamlPackages.camlp5_strict;
3130 ideFlags = if buildIde then "-lablgtkdir ${ocamlPackages.lablgtk}/lib/ocaml/*/site-lib/lablgtk2 -coqide opt" else "";
3231 csdpPatch = if csdp != null then ''
3332 substituteInPlace plugins/micromega/sos.ml --replace "; csdp" "; ${csdp}/bin/csdp"
@@ -37,8 +36,8 @@ self = stdenv.mkDerivation {
3736 name = "coq-${version}";
3837
3938 passthru = {
40− inherit coq-version camlp5;
41− inherit (ocamlPackages) ocaml findlib num;
39+ inherit coq-version;
40+ inherit (ocamlPackages) ocaml camlp5 findlib num;
4241 emacsBufferSetup = pkgs: ''
4342 ; Propagate coq paths to children
4443 (inherit-local-permanent coq-prog-name "${self}/bin/coqtop")
@@ -93,7 +92,7 @@ self = stdenv.mkDerivation {
9392 };
9493
9594 nativeBuildInputs = [ pkgconfig ];
96− buildInputs = [ ocamlPackages.ocaml ocamlPackages.findlib camlp5 ncurses ocamlPackages.num ]
95+ buildInputs = [ ncurses ] ++ (with ocamlPackages; [ ocaml findlib camlp5 num ])
9796 ++ stdenv.lib.optional buildIde ocamlPackages.lablgtk;
9897
9998 postPatch = ''
pkgs/applications/science/logic/prooftree/default.nix+2−2
@@ -2,11 +2,11 @@
22
33stdenv.mkDerivation (rec {
44 name = "prooftree-${version}";
5− version = "0.12";
5+ version = "0.13";
66
77 src = fetchurl {
88 url = "https://askra.de/software/prooftree/releases/prooftree-${version}.tar.gz";
9− sha256 = "08yp66j05pdkdpv9xkfqymqy82mir5xbwfh9mkzhh219xkps4b4m";
9+ sha256 = "0z1z4wqbqwgppkh2bm89fgy07a0y2m6g4lvcyzs09sm1ysklk2dh";
1010 };
1111
1212 nativeBuildInputs = [ pkgconfig ];
pkgs/development/ocaml-modules/elpi/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchFromGitHub, ocaml, findlib, camlp5_strict
1+{ stdenv, fetchFromGitHub, ocaml, findlib, camlp5
22, ppx_tools_versioned, ppx_deriving, re
33}:
44
@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
1414
1515 buildInputs = [ ocaml findlib ppx_tools_versioned ];
1616
17− propagatedBuildInputs = [ camlp5_strict ppx_deriving re ];
17+ propagatedBuildInputs = [ camlp5 ppx_deriving re ];
1818
1919 createFindlibDestdir = true;
2020
pkgs/development/ocaml-modules/ulex/0.8/camlp5.patchdeleted−72
@@ -1,72 +0,0 @@
1−Author: Stefano Zacchiroli <zack@debian.org>
2−Description: build (and install) using camlp5 instead of camlp4
3−--- ulex0.8.orig/META
4−+++ ulex0.8/META
5−@@ -1,5 +1,5 @@
6− version = "0.8"
7−-requires = "camlp4"
8−+requires = "camlp5"
9− description = "Runtime support for ulex"
10− archive(byte) = "ulexing.cma"
11− archive(native) = "ulexing.cmxa"
12−--- ulex0.8.orig/Makefile
13−+++ ulex0.8/Makefile
14−@@ -20,7 +20,7 @@
15− ocamlopt -a -o ulexing.cmxa $(ULEXING)
16−
17− pa_ulex.cma: $(ULEX)
18−- ocamlc -a -o pa_ulex.cma -pp 'camlp4o pa_extend.cmo q_MLast.cmo' -I +camlp4 $(ULEX)
19−+ ocamlc -a -o pa_ulex.cma -pp 'camlp5o pa_extend.cmo q_MLast.cmo' -I `camlp5 -where` $(ULEX)
20−
21− pa_ulex.ml: pa_ulex.ml.src
22− ocaml mk_pa_ulex.ml
23−@@ -29,14 +29,14 @@
24− rm -f *.cm* *~ test custom_ulexing *.o *.a *.html *.css pa_ulex.ml
25−
26− view_test: pa_ulex.cma
27−- camlp4o ./pa_ulex.cma pr_o.cmo -sep "\n" test.ml
28−+ camlp5o ./pa_ulex.cma pr_o.cmo -sep "\n" test.ml
29−
30− run_test: ulexing.cma pa_ulex.cma
31−- ocamlc -o test -pp 'camlp4o ./pa_ulex.cma' ulexing.cma test.ml
32−+ ocamlc -o test -pp 'camlp5o ./pa_ulex.cma' ulexing.cma test.ml
33− ./test
34−
35− custom_ulexing: ulexing.cma pa_ulex.cma
36−- ocamlc -o custom_ulexing -pp 'camlp4o ./pa_ulex.cma' ulexing.cma custom_ulexing.ml
37−+ ocamlc -o custom_ulexing -pp 'camlp5o ./pa_ulex.cma' ulexing.cma custom_ulexing.ml
38−
39−
40− doc:
41−--- ulex0.8.orig/README
42−+++ ulex0.8/README
43−@@ -142,7 +142,7 @@
44−
45− Compilation of OCaml files with lexer specifications:
46−
47−- ocamlfind ocamlc -c -package ulex -syntax camlp4o my_file.ml
48−+ ocamlfind ocamlc -c -package ulex -syntax camlp5o my_file.ml
49−
50− When linking, you must also include the ulex package:
51− ocamlfind ocamlc -o my_prog -linkpkg -package ulex my_file.cmo
52−--- ulex0.8.orig/mk_pa_ulex.ml
53−+++ ulex0.8/mk_pa_ulex.ml
54−@@ -1,10 +1,4 @@
55− let s = float_of_string (String.sub (Sys.ocaml_version) 0 4) in
56−-if (s < 3.09) then (
57− print_endline "Old camlp4 (loc)";
58− Sys.command "sed s/_loc/loc/ < pa_ulex.ml.src > pa_ulex.ml"
59−-)
60−-else (
61−- print_endline "New camlp4 (_loc)";
62−- Sys.command "cp pa_ulex.ml.src pa_ulex.ml"
63−-)
64−
65−--- ulex0.8.orig/pa_ulex.ml.src
66−+++ ulex0.8/pa_ulex.ml.src
67−@@ -1,4 +1,4 @@
68−-let _loc = (Lexing.dummy_pos,Lexing.dummy_pos)
69−+let _loc = Stdpp.dummy_loc
70−
71− (* Named regexp *)
72−
pkgs/development/ocaml-modules/ulex/0.8/default.nixdeleted−36
@@ -1,36 +0,0 @@
1−{stdenv, fetchurl, ocaml, findlib, camlp5 }:
2−
3−let
4− pname = "ulex";
5−in
6−
7−if stdenv.lib.versionAtLeast ocaml.version "4.06"
8−then throw "ulex-0.8 is not available for OCaml ${ocaml.version}"
9−else
10−
11−stdenv.mkDerivation rec {
12− name = "${pname}-${version}";
13− version = "0.8";
14−
15− src = fetchurl {
16− url = "http://www.cduce.org/download/old/${pname}-${version}.tar.gz";
17− sha256 = "19faabg8hzz155xlzmjwsl59d7slahb5m1l9zh1fqvvpp81r26cp";
18− };
19−
20− buildInputs = [ocaml findlib camlp5];
21−
22− createFindlibDestdir = true;
23−
24− patches = [ ./meta_version.patch ./camlp5.patch ];
25−
26− propagatedBuildInputs = [ camlp5 ];
27−
28− buildFlags = "all all.opt";
29−
30− meta = {
31− homepage = http://www.cduce.org/download.html;
32− description = "A lexer generator for Unicode and OCaml";
33− license = stdenv.lib.licenses.mit;
34− maintainers = [ stdenv.lib.maintainers.roconnor ];
35− };
36−}
pkgs/development/ocaml-modules/ulex/0.8/meta_version.patchdeleted−10
@@ -1,10 +0,0 @@
1−Author: Stefano Zacchiroli <zack@debian.org>
2−Description: fix a typo in the findlib package version number specified in META
3−--- ulex0.8.orig/META
4−+++ ulex0.8/META
5−@@ -1,4 +1,4 @@
6−-version = "0.7"
7−+version = "0.8"
8− requires = "camlp4"
9− description = "Runtime support for ulex"
10− archive(byte) = "ulexing.cma"
pkgs/top-level/all-packages.nix+1−4
@@ -21276,10 +21276,7 @@ with pkgs;
2127621276
2127721277 libpoly = callPackage ../applications/science/logic/poly {};
2127821278
21279− prooftree = (with ocaml-ng.ocamlPackages_4_01_0;
21280− callPackage ../applications/science/logic/prooftree {
21281− camlp5 = camlp5_transitional;
21282− });
21279+ prooftree = ocamlPackages.callPackage ../applications/science/logic/prooftree { };
2128321280
2128421281 prover9 = callPackage ../applications/science/logic/prover9 { };
2128521282
pkgs/top-level/coq-packages.nix+1−2
@@ -56,8 +56,7 @@ in rec {
5656 filterCoqPackages coq self;
5757
5858 coq_8_4 = callPackage ../applications/science/logic/coq/8.4.nix {
59− inherit (ocamlPackages_4_02) ocaml findlib lablgtk;
60− camlp5 = ocamlPackages_4_02.camlp5_transitional;
59+ inherit (ocamlPackages_4_02) ocaml findlib lablgtk camlp5;
6160 };
6261 coq_8_5 = callPackage ../applications/science/logic/coq {
6362 ocamlPackages = ocamlPackages_4_05;
pkgs/top-level/ocaml-packages.nix+4−16
@@ -88,15 +88,10 @@ let
8888 then callPackage ../development/tools/ocaml/camlp4 { }
8989 else null;
9090
91− camlp5_6_strict = callPackage ../development/tools/ocaml/camlp5 { };
91+ camlp5 = callPackage ../development/tools/ocaml/camlp5 { };
9292
93− camlp5_6_transitional = callPackage ../development/tools/ocaml/camlp5 {
94− transitional = true;
95− };
96−
97− camlp5_strict = camlp5_6_strict;
98−
99− camlp5_transitional = camlp5_6_transitional;
93+ # Compatibility alias
94+ camlp5_strict = camlp5;
10095
10196 camlpdf = callPackage ../development/ocaml-modules/camlpdf { };
10297
@@ -592,10 +587,6 @@ let
592587
593588 ulex = callPackage ../development/ocaml-modules/ulex { };
594589
595− ulex08 = callPackage ../development/ocaml-modules/ulex/0.8 {
596− camlp5 = camlp5_transitional;
597− };
598−
599590 textutils_p4 = callPackage ../development/ocaml-modules/textutils { };
600591
601592 tls = callPackage ../development/ocaml-modules/tls {
@@ -1046,10 +1037,7 @@ let
10461037 enableX11 = config.unison.enableX11 or true;
10471038 };
10481039
1049− hol_light = callPackage ../applications/science/logic/hol_light {
1050− inherit num;
1051− camlp5 = camlp5_strict;
1052− };
1040+ hol_light = callPackage ../applications/science/logic/hol_light { };
10531041
10541042 };
10551043 in (ocamlPackages.janeStreet // ocamlPackages);