git.iko.soy/typeable/nixpkgs
on master help sign in
Fold in specific ocaml version choice into let
commit7264efb5cb387ada5e739ec35d4b48db1904705b authorrht <rhtbot@gmail.com> dateSun 15 Jan 2017, 18:21 (10 years ago) parent975d040
2 files changed+9−9
pkgs/applications/science/logic/coq/HEAD.nix+8−5 pkgs/top-level/all-packages.nix+1−4
pkgs/applications/science/logic/coq/HEAD.nix+8−5
@@ -1,26 +1,29 @@
1−# - coqide compilation can be disabled by setting lablgtk to null;
1+# - coqide compilation can be disabled by setting buildIde to false;
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.
55
6−{stdenv, fetchgit, writeText, pkgconfig, ocaml, findlib, camlp5, ncurses, lablgtk ? null, csdp ? null}:
6+{stdenv, fetchgit, writeText, pkgconfig, ocamlPackages_4_02, ncurses, buildIde ? true, csdp ? null}:
77
88let
99 version = "2017-01-22";
1010 coq-version = "8.6";
11− buildIde = lablgtk != null;
12− ideFlags = if buildIde then "-lablgtkdir ${lablgtk}/lib/ocaml/*/site-lib/lablgtk2 -coqide opt" else "";
11+ ideFlags = if buildIde then "-lablgtkdir ${ocamlPackages_4_02.lablgtk}/lib/ocaml/*/site-lib/lablgtk2 -coqide opt" else "";
1312 csdpPatch = if csdp != null then ''
1413 substituteInPlace plugins/micromega/sos.ml --replace "; csdp" "; ${csdp}/bin/csdp"
1514 substituteInPlace plugins/micromega/coq_micromega.ml --replace "System.is_in_system_path \"csdp\"" "true"
1615 '' else "";
16+ ocaml = ocamlPackages_4_02.ocaml;
17+ findlib = ocamlPackages_4_02.findlib;
18+ lablgtk = ocamlPackages_4_02.lablgtk;
19+ camlp5 = ocamlPackages_4_02.camlp5_transitional;
1720in
1821
1922stdenv.mkDerivation {
2023 name = "coq-unstable-${version}";
2124
2225 inherit coq-version;
23− inherit ocaml camlp5;
26+ inherit ocaml camlp5 findlib;
2427
2528 src = fetchgit {
2629 url = git://scm.gforge.inria.fr/coq/coq.git;
pkgs/top-level/all-packages.nix+1−4
@@ -17221,10 +17221,7 @@ with pkgs;
1722117221 version = "8.5pl3";
1722217222 };
1722317223 coq_8_6 = callPackage ../applications/science/logic/coq {};
17224− coq_HEAD = callPackage ../applications/science/logic/coq/HEAD.nix {
17225− inherit (ocamlPackages_4_02) ocaml findlib lablgtk;
17226− camlp5 = ocamlPackages_4_02.camlp5_transitional;
17227− };
17224+ coq_HEAD = callPackage ../applications/science/logic/coq/HEAD.nix {};
1722817225 coq = coq_8_6;
1722917226
1723017227 mkCoqPackages_8_4 = self: let callPackage = newScope self; in {