git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #20025 from vbgl/coq-8.5pl3

Coq: 8.5pl2 -> 8.5pl3

commit4008300243c3b8e3a24202feb0057b70f1139ac6 authorJohn Wiegley <johnw@newartisans.com> dateThu 3 Nov 2016, 10:38 (10 years ago) parentb137b8db028b5f
4 files changed+40−28
pkgs/applications/science/logic/coq/8.5.nix+20−5 pkgs/development/compilers/compcert/default.nix+1 pkgs/top-level/all-packages.nix+18−4 pkgs/top-level/ocaml-packages.nix+1−19
pkgs/applications/science/logic/coq/8.5.nix+20−5
@@ -2,11 +2,22 @@
22# - The csdp program used for the Micromega tactic is statically referenced.
33# However, coq can build without csdp by setting it to null.
44# In this case some Micromega tactics will search the user's path for the csdp program and will fail if it is not found.
5+# - The patch-level version can be specified through the `pl` argument to
6+# the derivation; it defaults to the greatest.
57
6−{stdenv, fetchurl, writeText, pkgconfig, ocaml, findlib, camlp5, ncurses, lablgtk ? null, csdp ? null}:
8+{ stdenv, fetchurl, writeText, pkgconfig
9+, ocaml, findlib, camlp5, ncurses
10+, lablgtk ? null, csdp ? null
11+, pl ? "3"
12+}:
713
814let
9− version = "8.5pl2";
15+ version = "8.5pl${pl}";
16+ sha256 = {
17+ "1" = "1w2xvm6w16khfn63bp95s25hnkn2ny3w0yqg3lq63gp11aqpbyjb";
18+ "2" = "0wyywia0darak2zmc5v0ra9rn0b9whwdfiahralm8v5za499s8w3";
19+ "3" = "0fyk2a4fpifibq8y8jhx1891k55qnsnlygglch64sva0bph94nrh";
20+ }."${pl}";
1021 coq-version = "8.5";
1122 buildIde = lablgtk != null;
1223 ideFlags = if buildIde then "-lablgtkdir ${lablgtk}/lib/ocaml/*/site-lib/lablgtk2 -coqide opt" else "";
@@ -24,7 +35,7 @@ stdenv.mkDerivation {
2435
2536 src = fetchurl {
2637 url = "http://coq.inria.fr/distrib/V${version}/files/coq-${version}.tar.gz";
27− sha256 = "0wyywia0darak2zmc5v0ra9rn0b9whwdfiahralm8v5za499s8w3";
38+ inherit sha256;
2839 };
2940
3041 buildInputs = [ pkgconfig ocaml findlib camlp5 ncurses lablgtk ];
@@ -34,7 +45,7 @@ stdenv.mkDerivation {
3445 RM=$(type -tp rm)
3546 substituteInPlace configure --replace "/bin/uname" "$UNAME"
3647 substituteInPlace tools/beautify-archive --replace "/bin/rm" "$RM"
37− substituteInPlace configure.ml --replace "if arch = \"Darwin\" || arch = \"FreeBSD\" then \"md5" "if arch = \"Darwinx\" then \"md5"
48+ substituteInPlace configure.ml --replace '"md5 -q"' '"md5sum"'
3849 ${csdpPatch}
3950 '';
4051
@@ -57,7 +68,11 @@ stdenv.mkDerivation {
5768
5869 prefixKey = "-prefix ";
5970
60− buildFlags = "revision coq coqide";
71+ buildFlags = "revision coq coqide bin/votour";
72+
73+ postInstall = ''
74+ cp bin/votour $out/bin/
75+ '';
6176
6277 meta = with stdenv.lib; {
6378 description = "Coq proof assistant";
pkgs/development/compilers/compcert/default.nix+1
@@ -19,6 +19,7 @@ stdenv.mkDerivation rec {
1919 enableParallelBuilding = true;
2020
2121 configurePhase = ''
22+ substituteInPlace ./configure --replace pl2 pl3
2223 substituteInPlace ./configure --replace '{toolprefix}gcc' '{toolprefix}cc'
2324 ./configure -prefix $out -toolprefix ${tools}/bin/ '' +
2425 (if stdenv.isDarwin then "ia32-macosx" else "ia32-linux");
pkgs/top-level/all-packages.nix+18−4
@@ -16487,13 +16487,27 @@ in
1648716487
1648816488 aspino = callPackage ../applications/science/logic/aspino {};
1648916489
16490− inherit (ocaml-ng.ocamlPackages_4_01_0) coq;
16490+ coq = callPackage ../applications/science/logic/coq {
16491+ inherit (ocamlPackages_4_01_0) ocaml findlib lablgtk;
16492+ camlp5 = ocamlPackages_4_01_0.camlp5_transitional;
16493+ };
1649116494
16492− inherit (ocamlPackages) coq_HEAD;
16495+ coq_HEAD = callPackage ../applications/science/logic/coq/HEAD.nix {
16496+ inherit (ocamlPackages) ocaml findlib lablgtk;
16497+ camlp5 = ocamlPackages.camlp5_transitional;
16498+ };
1649316499
16494− inherit (ocamlPackages) coq_8_5;
16500+ coq_8_5 = callPackage ../applications/science/logic/coq/8.5.nix {
16501+ inherit (ocamlPackages) ocaml findlib lablgtk;
16502+ camlp5 = ocamlPackages.camlp5_transitional;
16503+ };
1649516504
16496− inherit (ocaml-ng.ocamlPackages_3_12_1) coq_8_3;
16505+ coq_8_3 = callPackage ../applications/science/logic/coq/8.3.nix {
16506+ make = pkgs.gnumake3;
16507+ inherit (ocamlPackages_3_12_1) ocaml findlib;
16508+ camlp5 = ocamlPackages_3_12_1.camlp5_transitional;
16509+ lablgtk = ocamlPackages_3_12_1.lablgtk_2_14;
16510+ };
1649716511
1649816512 mkCoqPackages_8_4 = self: let callPackage = newScope self; in {
1649916513
pkgs/top-level/ocaml-packages.nix+1−19
@@ -630,7 +630,7 @@ let
630630 then { tools = pkgs.pkgsi686Linux.stdenv.cc; }
631631 else {}
632632 ) // {
633− coq = coq_8_5;
633+ coq = pkgs.coq_8_5;
634634 });
635635
636636 haxe = callPackage ../development/compilers/haxe { };
@@ -672,24 +672,6 @@ let
672672 enableX11 = config.unison.enableX11 or true;
673673 };
674674
675− coq = callPackage ../applications/science/logic/coq {
676− camlp5 = camlp5_transitional;
677− };
678−
679− coq_HEAD = callPackage ../applications/science/logic/coq/HEAD.nix {
680− camlp5 = camlp5_transitional;
681− };
682−
683− coq_8_5 = callPackage ../applications/science/logic/coq/8.5.nix {
684− camlp5 = camlp5_transitional;
685− };
686−
687− coq_8_3 = callPackage ../applications/science/logic/coq/8.3.nix {
688− make = pkgs.gnumake3;
689− camlp5 = camlp5_transitional;
690− lablgtk = lablgtk_2_14;
691− };
692−
693675 hol_light = callPackage ../applications/science/logic/hol_light {
694676 camlp5 = camlp5_strict;
695677 };