Merge pull request #172806 from NixOS/revert-161977-coq-findlib

Revert "coq propagate ocamlBuildInputs"

authored by

Vincent Laporte and committed by
GitHub
d999ca3e 39b19066

+114 -132
+5 -10
doc/languages-frameworks/coq.section.md
··· 29 * `releaseRev` (optional, defaults to `(v: v)`), provides a default mapping from release names to revision hashes/branch names/tags, 30 * `displayVersion` (optional), provides a way to alter the computation of `name` from `pname`, by explaining how to display version numbers, 31 * `namePrefix` (optional, defaults to `[ "coq" ]`), provides a way to alter the computation of `name` from `pname`, by explaining which dependencies must occur in `name`, 32 - * `nativeBuildInputs` (optional), is a list of executables that are required to build the current derivation, in addition to the default ones (namely `which`, `dune` and `ocaml` depending on whether `useDune2`, `useDune2ifVersion` and `mlPlugin` are set). 33 - * `extraNativeBuildInputs` (optional, deprecated), an additional list of derivation to add to `nativeBuildInputs`, 34 - * `overrideNativeBuildInputs` (optional) replaces the default list of derivation to which `nativeBuildInputs` and `extraNativeBuildInputs` adds extra elements, 35 - * `buildInputs` (optional), is a list of libraries and dependencies that are required to build and run the current derivation, in addition to the default one `[ coq ]`, 36 - * `extraBuildInputs` (optional, deprecated), an additional list of derivation to add to `buildInputs`, 37 - * `overrideBuildInputs` (optional) replaces the default list of derivation to which `buildInputs` and `extraBuildInputs` adds extras elements, 38 - * `propagatedBuildInputs` (optional) is passed as is to `mkDerivation`, we recommend to use this for Coq libraries and Coq plugin dependencies, as this makes sure the paths of the compiled libraries and plugins will always be added to the build environements of subsequent derivation, which is necessary for Coq packages to work correctly, 39 - * `mlPlugin` (optional, defaults to `false`). Some extensions (plugins) might require OCaml and sometimes other OCaml packages. Standard dependencies can be added by setting the current option to `true`. For a finer grain control, the `coq.ocamlPackages` attribute can be used in `nativeBuildInputs`, `buildInputs`, and `propagatedBuildInputs` to depend on the same package set Coq was built against. 40 - * `useDune2ifVersion` (optional, default to `(x: false)` uses Dune2 to build the package if the provided predicate evaluates to true on the version, e.g. `useDune2ifVersion = versions.isGe "1.1"` will use dune if the version of the package is greater or equal to `"1.1"`, 41 * `useDune2` (optional, defaults to `false`) uses Dune2 to build the package if set to true, the presence of this attribute overrides the behavior of the previous one. 42 * `opam-name` (optional, defaults to concatenating with a dash separator the components of `namePrefix` and `pname`), name of the Dune package to build. 43 * `enableParallelBuilding` (optional, defaults to `true`), since it is activated by default, we provide a way to disable it. 44 - * `extraInstallFlags` (optional), allows to extend `installFlags` which initializes the variables `DESTDIR` and `COQMF_COQLIB` so as to install in the proper subdirectory. Indeed Coq libraries should be installed in `$(out)/lib/coq/${coq.coq-version}/user-contrib/`. Such directories are automatically added to the `$COQPATH` environment variable by the hook defined in the Coq derivation. 45 * `setCOQBIN` (optional, defaults to `true`), by default, the environment variable `$COQBIN` is set to the current Coq's binary, but one can disable this behavior by setting it to `false`, 46 * `useMelquiondRemake` (optional, default to `null`) is an attribute set, which, if given, overloads the `preConfigurePhases`, `configureFlags`, `buildPhase`, and `installPhase` attributes of the derivation for a specific use in libraries using `remake` as set up by Guillaume Melquiond for `flocq`, `gappalib`, `interval`, and `coquelicot` (see the corresponding derivation for concrete examples of use of this option). For backward compatibility, the attribute `useMelquiondRemake.logpath` must be set to the logical root of the library (otherwise, one can pass `useMelquiondRemake = {}` to activate this without backward compatibility). 47 * `dropAttrs`, `keepAttrs`, `dropDerivationAttrs` are all optional and allow to tune which attribute is added or removed from the final call to `mkDerivation`.
··· 29 * `releaseRev` (optional, defaults to `(v: v)`), provides a default mapping from release names to revision hashes/branch names/tags, 30 * `displayVersion` (optional), provides a way to alter the computation of `name` from `pname`, by explaining how to display version numbers, 31 * `namePrefix` (optional, defaults to `[ "coq" ]`), provides a way to alter the computation of `name` from `pname`, by explaining which dependencies must occur in `name`, 32 + * `extraNativeBuildInputs` (optional), by default `nativeBuildInputs` just contains `coq`, this allows to add more native build inputs, `nativeBuildInputs` are executables and `buildInputs` are libraries and dependencies, 33 + * `extraBuildInputs` (optional), this allows to add more build inputs, 34 + * `mlPlugin` (optional, defaults to `false`). Some extensions (plugins) might require OCaml and sometimes other OCaml packages. Standard dependencies can be added by setting the current option to `true`. For a finer grain control, the `coq.ocamlPackages` attribute can be used in `extraBuildInputs` to depend on the same package set Coq was built against. 35 + * `useDune2ifVersion` (optional, default to `(x: false)` uses Dune2 to build the package if the provided predicate evaluates to true on the version, e.g. `useDune2if = versions.isGe "1.1"` will use dune if the version of the package is greater or equal to `"1.1"`, 36 * `useDune2` (optional, defaults to `false`) uses Dune2 to build the package if set to true, the presence of this attribute overrides the behavior of the previous one. 37 * `opam-name` (optional, defaults to concatenating with a dash separator the components of `namePrefix` and `pname`), name of the Dune package to build. 38 * `enableParallelBuilding` (optional, defaults to `true`), since it is activated by default, we provide a way to disable it. 39 + * `extraInstallFlags` (optional), allows to extend `installFlags` which initializes the variable `COQMF_COQLIB` so as to install in the proper subdirectory. Indeed Coq libraries should be installed in `$(out)/lib/coq/${coq.coq-version}/user-contrib/`. Such directories are automatically added to the `$COQPATH` environment variable by the hook defined in the Coq derivation. 40 * `setCOQBIN` (optional, defaults to `true`), by default, the environment variable `$COQBIN` is set to the current Coq's binary, but one can disable this behavior by setting it to `false`, 41 * `useMelquiondRemake` (optional, default to `null`) is an attribute set, which, if given, overloads the `preConfigurePhases`, `configureFlags`, `buildPhase`, and `installPhase` attributes of the derivation for a specific use in libraries using `remake` as set up by Guillaume Melquiond for `flocq`, `gappalib`, `interval`, and `coquelicot` (see the corresponding derivation for concrete examples of use of this option). For backward compatibility, the attribute `useMelquiondRemake.logpath` must be set to the logical root of the library (otherwise, one can pass `useMelquiondRemake = {}` to activate this without backward compatibility). 42 * `dropAttrs`, `keepAttrs`, `dropDerivationAttrs` are all optional and allow to tune which attribute is added or removed from the final call to `mkDerivation`.
+4 -9
pkgs/applications/science/logic/coq/default.nix
··· 70 { case = range "8.7" "8.10"; out = ocamlPackages_4_09; } 71 { case = range "8.5" "8.6"; out = ocamlPackages_4_05; } 72 ] ocamlPackages_4_12; 73 - ocamlNativeBuildInputs = [ ocamlPackages.ocaml ] 74 ++ optional (coqAtLeast "8.14") ocamlPackages.dune_2; 75 - ocamlPropagatedNativeBuildInputs = [ ocamlPackages.findlib ]; 76 - ocamlPropagatedBuildInputs = [ ] 77 ++ optional (!coqAtLeast "8.10") ocamlPackages.camlp5 78 ++ optional (!coqAtLeast "8.13") ocamlPackages.num 79 ++ optional (coqAtLeast "8.13") ocamlPackages.zarith; ··· 83 84 passthru = { 85 inherit coq-version; 86 - inherit ocamlPackages ocamlNativeNuildInputs; 87 - inherit ocamlPropagatedBuildInputs ocamlPropagatedNativeBuildInputs; 88 # For compatibility 89 inherit (ocamlPackages) ocaml camlp5 findlib num ; 90 emacsBufferSetup = pkgs: '' ··· 138 ++ optional buildIde copyDesktopItems 139 ++ optional (buildIde && coqAtLeast "8.10") wrapGAppsHook 140 ++ optional (!coqAtLeast "8.6") gnumake42; 141 - buildInputs = [ ncurses ] 142 ++ optionals buildIde 143 (if coqAtLeast "8.10" 144 then [ ocamlPackages.lablgtk3-sourceview3 glib gnome.adwaita-icon-theme ] 145 else [ ocamlPackages.lablgtk ]) 146 ; 147 - 148 - propagatedNativeBuildInputs = ocamlPropagatedNativeBuildInputs; 149 - propagatedBuildInputs = ocamlPropagatedBuildInputs; 150 151 postPatch = '' 152 UNAME=$(type -tp uname)
··· 70 { case = range "8.7" "8.10"; out = ocamlPackages_4_09; } 71 { case = range "8.5" "8.6"; out = ocamlPackages_4_05; } 72 ] ocamlPackages_4_12; 73 + ocamlNativeBuildInputs = [ ocamlPackages.ocaml ocamlPackages.findlib ] 74 ++ optional (coqAtLeast "8.14") ocamlPackages.dune_2; 75 + ocamlBuildInputs = [] 76 ++ optional (!coqAtLeast "8.10") ocamlPackages.camlp5 77 ++ optional (!coqAtLeast "8.13") ocamlPackages.num 78 ++ optional (coqAtLeast "8.13") ocamlPackages.zarith; ··· 82 83 passthru = { 84 inherit coq-version; 85 + inherit ocamlPackages ocamlBuildInputs ocamlNativeBuildInputs; 86 # For compatibility 87 inherit (ocamlPackages) ocaml camlp5 findlib num ; 88 emacsBufferSetup = pkgs: '' ··· 136 ++ optional buildIde copyDesktopItems 137 ++ optional (buildIde && coqAtLeast "8.10") wrapGAppsHook 138 ++ optional (!coqAtLeast "8.6") gnumake42; 139 + buildInputs = [ ncurses ] ++ ocamlBuildInputs 140 ++ optionals buildIde 141 (if coqAtLeast "8.10" 142 then [ ocamlPackages.lablgtk3-sourceview3 glib gnome.adwaita-icon-theme ] 143 else [ ocamlPackages.lablgtk ]) 144 ; 145 146 postPatch = '' 147 UNAME=$(type -tp uname)
+13 -26
pkgs/build-support/coq/default.nix
··· 1 - { lib, stdenv, coqPackages, coq, which, fetchzip }@args: 2 let lib = import ./extra-lib.nix {inherit (args) lib;}; in 3 with builtins; with lib; 4 let ··· 15 releaseRev ? (v: v), 16 displayVersion ? {}, 17 release ? {}, 18 - buildInputs ? [], 19 - nativeBuildInputs ? [], 20 extraBuildInputs ? [], 21 extraNativeBuildInputs ? [], 22 - overrideBuildInputs ? [], 23 - overrideNativeBuildInputs ? [], 24 namePrefix ? [ "coq" ], 25 enableParallelBuilding ? true, 26 extraInstallFlags ? [], ··· 39 args-to-remove = foldl (flip remove) ([ 40 "version" "fetcher" "repo" "owner" "domain" "releaseRev" 41 "displayVersion" "defaultVersion" "useMelquiondRemake" 42 - "release" 43 - "buildInputs" "nativeBuildInputs" 44 - "extraBuildInputs" "extraNativeBuildInputs" 45 - "overrideBuildInputs" "overrideNativeBuildInputs" 46 - "namePrefix" 47 "meta" "useDune2ifVersion" "useDune2" "opam-name" 48 "extraInstallFlags" "setCOQBIN" "mlPlugin" 49 "dropAttrs" "dropDerivationAttrs" "keepAttrs" ] ++ dropAttrs) keepAttrs; ··· 65 ] "") + optionalString (v == null) "-broken"; 66 append-version = p: n: p + display-pkg n "" coqPackages.${n}.version + "-"; 67 prefix-name = foldl append-version "" namePrefix; 68 useDune2 = args.useDune2 or (useDune2ifVersion fetched.version); 69 - coqlib-flags = switch coq.coq-version [ 70 - { case = v: versions.isLe "8.6" v && v != "dev" ; 71 - out = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ]; } 72 - ] [ "COQLIBINSTALL=$(out)/lib/coq/${coq.coq-version}/user-contrib" 73 - "COQPLUGININSTALL=$(OCAMLFIND_DESTDIR)" ]; 74 - docdir-flags = switch coq.coq-version [ 75 - { case = v: versions.isLe "8.6" v && v != "dev"; 76 - out = [ "DOCDIR=$(out)/share/coq/${coq.coq-version}/" ]; } 77 - ] [ "COQDOCINSTALL=$(out)/share/coq/${coq.coq-version}/user-contrib" ]; 78 in 79 80 stdenv.mkDerivation (removeAttrs ({ ··· 83 84 inherit (fetched) version src; 85 86 - nativeBuildInputs = args.overrideNativeBuildInputs 87 - or ([ which ] ++ optional useDune2 coq.ocamlPackages.dune_2 88 - ++ optional (useDune2 || mlPlugin) coq.ocaml 89 - ++ (args.nativeBuildInputs or []) ++ extraNativeBuildInputs); 90 - buildInputs = args.overrideBuildInputs 91 - or ([ coq ] ++ (args.buildInputs or []) ++ extraBuildInputs); 92 inherit enableParallelBuilding; 93 94 meta = ({ platforms = coq.meta.platforms; } // ··· 103 // (optionalAttrs setCOQBIN { COQBIN = "${coq}/bin/"; }) 104 // (optionalAttrs (!args?installPhase && !args?useMelquiondRemake) { 105 installFlags = 106 - [ "DESTDIR=$(out)" ] ++ coqlib-flags ++ docdir-flags ++ 107 extraInstallFlags; 108 }) 109 // (optionalAttrs useDune2 {
··· 1 + { lib, stdenv, coqPackages, coq, fetchzip }@args: 2 let lib = import ./extra-lib.nix {inherit (args) lib;}; in 3 with builtins; with lib; 4 let ··· 15 releaseRev ? (v: v), 16 displayVersion ? {}, 17 release ? {}, 18 extraBuildInputs ? [], 19 extraNativeBuildInputs ? [], 20 namePrefix ? [ "coq" ], 21 enableParallelBuilding ? true, 22 extraInstallFlags ? [], ··· 35 args-to-remove = foldl (flip remove) ([ 36 "version" "fetcher" "repo" "owner" "domain" "releaseRev" 37 "displayVersion" "defaultVersion" "useMelquiondRemake" 38 + "release" "extraBuildInputs" "extraNativeBuildInputs" "extraPropagatedBuildInputs" "namePrefix" 39 "meta" "useDune2ifVersion" "useDune2" "opam-name" 40 "extraInstallFlags" "setCOQBIN" "mlPlugin" 41 "dropAttrs" "dropDerivationAttrs" "keepAttrs" ] ++ dropAttrs) keepAttrs; ··· 57 ] "") + optionalString (v == null) "-broken"; 58 append-version = p: n: p + display-pkg n "" coqPackages.${n}.version + "-"; 59 prefix-name = foldl append-version "" namePrefix; 60 + var-coqlib-install = 61 + (optionalString (versions.isGe "8.7" coq.coq-version || coq.coq-version == "dev") "COQMF_") + "COQLIB"; 62 useDune2 = args.useDune2 or (useDune2ifVersion fetched.version); 63 in 64 65 stdenv.mkDerivation (removeAttrs ({ ··· 68 69 inherit (fetched) version src; 70 71 + nativeBuildInputs = [ coq ] 72 + ++ optionals useDune2 [coq.ocaml coq.ocamlPackages.dune_2] 73 + ++ optionals mlPlugin coq.ocamlNativeBuildInputs 74 + ++ extraNativeBuildInputs; 75 + buildInputs = optionals mlPlugin coq.ocamlBuildInputs 76 + ++ extraBuildInputs; 77 inherit enableParallelBuilding; 78 79 meta = ({ platforms = coq.meta.platforms; } // ··· 88 // (optionalAttrs setCOQBIN { COQBIN = "${coq}/bin/"; }) 89 // (optionalAttrs (!args?installPhase && !args?useMelquiondRemake) { 90 installFlags = 91 + [ "${var-coqlib-install}=$(out)/lib/coq/${coq.coq-version}/" ] ++ 92 + optional (match ".*doc$" (args.installTargets or "") != null) 93 + "DOCDIR=$(out)/share/coq/${coq.coq-version}/" ++ 94 extraInstallFlags; 95 }) 96 // (optionalAttrs useDune2 {
+1 -1
pkgs/development/coq-modules/CoLoR/default.nix
··· 20 release."1.4.0".rev = "168c6b86c7d3f87ee51791f795a8828b1521589a"; 21 release."1.4.0".sha256 = "1d2whsgs3kcg5wgampd6yaqagcpmzhgb6a0hp6qn4lbimck5dfmm"; 22 23 - propagatedBuildInputs = [ bignums ]; 24 enableParallelBuilding = false; 25 26 meta = {
··· 20 release."1.4.0".rev = "168c6b86c7d3f87ee51791f795a8828b1521589a"; 21 release."1.4.0".sha256 = "1d2whsgs3kcg5wgampd6yaqagcpmzhgb6a0hp6qn4lbimck5dfmm"; 22 23 + extraBuildInputs = [ bignums ]; 24 enableParallelBuilding = false; 25 26 meta = {
+1 -1
pkgs/development/coq-modules/HoTT/default.nix
··· 8 release."20170921".rev = "e3557740a699167e6adb1a65855509d55a392fa1"; 9 release."20170921".sha256 = "0zwfp8g62b50vmmbb2kmskj3v6w7qx1pbf43yw0hr7asdz2zbx5v"; 10 11 - nativeBuildInputs = [ autoconf automake ]; 12 13 preConfigure = '' 14 patchShebangs ./autogen.sh
··· 8 release."20170921".rev = "e3557740a699167e6adb1a65855509d55a392fa1"; 9 release."20170921".sha256 = "0zwfp8g62b50vmmbb2kmskj3v6w7qx1pbf43yw0hr7asdz2zbx5v"; 10 11 + extraBuildInputs = [ autoconf automake ]; 12 13 preConfigure = '' 14 patchShebangs ./autogen.sh
+2 -1
pkgs/development/coq-modules/QuickChick/default.nix
··· 36 "substituteInPlace Makefile --replace quickChickTool.byte quickChickTool.native"; 37 38 mlPlugin = true; 39 - nativeBuildInputs = lib.optional recent coq.ocamlPackages.ocamlbuild; 40 propagatedBuildInputs = [ ssreflect ] 41 ++ lib.optionals recent [ coq-ext-lib simple-io ]; 42 extraInstallFlags = [ "-f Makefile.coq" ];
··· 36 "substituteInPlace Makefile --replace quickChickTool.byte quickChickTool.native"; 37 38 mlPlugin = true; 39 + extraNativeBuildInputs = lib.optional recent coq.ocamlPackages.ocamlbuild; 40 + extraBuildInputs = lib.optional recent coq.ocamlPackages.num; 41 propagatedBuildInputs = [ ssreflect ] 42 ++ lib.optionals recent [ coq-ext-lib simple-io ]; 43 extraInstallFlags = [ "-f Makefile.coq" ];
+1 -1
pkgs/development/coq-modules/VST/default.nix
··· 31 release."2.9".sha256 = "sha256:1adwzbl1pprrrwrm7cm493098fizxanxpv7nyfbvwdhgbhcnv6qf"; 32 release."2.8".sha256 = "sha256-cyK88uzorRfjapNQ6XgQEmlbWnDsiyLve5po1VG52q0="; 33 releaseRev = v: "v${v}"; 34 - buildInputs = [ ITree ]; 35 propagatedBuildInputs = [ compcert ]; 36 37 preConfigure = ''
··· 31 release."2.9".sha256 = "sha256:1adwzbl1pprrrwrm7cm493098fizxanxpv7nyfbvwdhgbhcnv6qf"; 32 release."2.8".sha256 = "sha256-cyK88uzorRfjapNQ6XgQEmlbWnDsiyLve5po1VG52q0="; 33 releaseRev = v: "v${v}"; 34 + extraBuildInputs = [ ITree ]; 35 propagatedBuildInputs = [ compcert ]; 36 37 preConfigure = ''
+1 -1
pkgs/development/coq-modules/bignums/default.nix
··· 5 owner = "coq"; 6 displayVersion = { bignums = ""; }; 7 inherit version; 8 - defaultVersion = if versions.isGe "8.6" coq.coq-version 9 then "${coq.coq-version}.0" else null; 10 11 release."8.15.0".sha256 = "093klwlhclgyrba1iv18dyz1qp5f0lwiaa7y0qwvgmai8rll5fns";
··· 5 owner = "coq"; 6 displayVersion = { bignums = ""; }; 7 inherit version; 8 + defaultVersion = if versions.isGe "8.5" coq.coq-version 9 then "${coq.coq-version}.0" else null; 10 11 release."8.15.0".sha256 = "093klwlhclgyrba1iv18dyz1qp5f0lwiaa7y0qwvgmai8rll5fns";
+5 -10
pkgs/development/coq-modules/compcert/default.nix
··· 1 { lib, fetchzip, mkCoqDerivation, coq, flocq, compcert 2 - , fetchpatch, makeWrapper, coq2html 3 , stdenv, tools ? stdenv.cc 4 , version ? null 5 }: ··· 15 releaseRev = v: "v${v}"; 16 17 defaultVersion = with versions; switch coq.version [ 18 - { case = range "8.13" "8.15"; out = "3.10"; } 19 - { case = isEq "8.12" ; out = "3.9"; } 20 { case = range "8.8" "8.11"; out = "3.8"; } 21 ] null; 22 23 release = { ··· 26 "3.10".sha256 = "sha256:19rmx8r8v46101ij5myfrz60arqjy7q3ra3fb8mxqqi3c8c4l4j6"; 27 }; 28 29 - mlPlugin = true; 30 nativeBuildInputs = [ makeWrapper ]; 31 - buildInputs = with coq.ocamlPackages; [ menhir menhirLib ] ++ [ coq2html ]; 32 propagatedBuildInputs = [ flocq ]; 33 34 enableParallelBuilding = true; ··· 49 ''; 50 51 installTargets = "documentation install"; 52 - installFlags = []; # trust ./configure 53 - preInstall = '' 54 - mkdir -p $out/share/man 55 - mkdir -p $man/share 56 - ''; 57 postInstall = '' 58 # move man into place 59 mv $out/share/man/ $man/share/ 60 61 # move docs into place
··· 1 { lib, fetchzip, mkCoqDerivation, coq, flocq, compcert 2 + , ocamlPackages, fetchpatch, makeWrapper, coq2html 3 , stdenv, tools ? stdenv.cc 4 , version ? null 5 }: ··· 15 releaseRev = v: "v${v}"; 16 17 defaultVersion = with versions; switch coq.version [ 18 { case = range "8.8" "8.11"; out = "3.8"; } 19 + { case = isEq "8.12" ; out = "3.9"; } 20 + { case = range "8.12" "8.15"; out = "3.10"; } 21 ] null; 22 23 release = { ··· 26 "3.10".sha256 = "sha256:19rmx8r8v46101ij5myfrz60arqjy7q3ra3fb8mxqqi3c8c4l4j6"; 27 }; 28 29 nativeBuildInputs = [ makeWrapper ]; 30 + buildInputs = with ocamlPackages; [ ocaml findlib menhir menhirLib ] ++ [ coq coq2html ]; 31 propagatedBuildInputs = [ flocq ]; 32 33 enableParallelBuilding = true; ··· 48 ''; 49 50 installTargets = "documentation install"; 51 postInstall = '' 52 # move man into place 53 + mkdir -p $man/share 54 mv $out/share/man/ $man/share/ 55 56 # move docs into place
+24 -8
pkgs/development/coq-modules/coq-bits/default.nix
··· 1 - { lib, mkCoqDerivation, coq, mathcomp-algebra, version ? null }: 2 3 with lib; mkCoqDerivation { 4 pname = "coq-bits"; 5 repo = "bits"; 6 inherit version; 7 - defaultVersion = with versions; switch coq.coq-version [ 8 - { case = isGe "8.10"; out = "1.1.0"; } 9 - { case = isGe "8.7"; out = "1.0.0"; } 10 - ] null; 11 12 - release."1.1.0".sha256 = "sha256-TCw1kSXeW0ysIdLeNr+EGmpGumEE9i8tinEMp57UXaE="; 13 - release."1.0.0".sha256 = "0nv5mdgrd075dpd8bc7h0xc5i95v0pkm0bfyq5rj6ii1s54dwcjl"; 14 15 - propagatedBuildInputs = [ mathcomp-algebra ]; 16 17 meta = { 18 description = "A formalization of bitset operations in Coq";
··· 1 + { lib, mkCoqDerivation, coq, mathcomp, version ? null }: 2 3 with lib; mkCoqDerivation { 4 pname = "coq-bits"; 5 repo = "bits"; 6 inherit version; 7 + defaultVersion = 8 + if versions.isGe "8.10" coq.version 9 + then "1.1.0" 10 + else if versions.isGe "8.7" coq.version 11 + then "1.0.0" 12 + else null; 13 14 + release = { 15 + "1.0.0" = { 16 + rev = "1.0.0"; 17 + sha256 = "0nv5mdgrd075dpd8bc7h0xc5i95v0pkm0bfyq5rj6ii1s54dwcjl"; 18 + }; 19 + "1.1.0" = { 20 + rev = "1.1.0"; 21 + sha256 = "sha256-TCw1kSXeW0ysIdLeNr+EGmpGumEE9i8tinEMp57UXaE="; 22 + }; 23 + }; 24 25 + extraBuildInputs = [ mathcomp.ssreflect mathcomp.fingroup ]; 26 + propagatedBuildInputs = [ mathcomp.algebra ]; 27 + 28 + installPhase = '' 29 + make -f Makefile CoqMakefile 30 + make -f CoqMakefile COQLIB=$out/lib/coq/${coq.coq-version}/ install 31 + ''; 32 33 meta = { 34 description = "A formalization of bitset operations in Coq";
+2 -2
pkgs/development/coq-modules/coq-elpi/default.nix
··· 7 { case = "8.13"; out = { version = "1.13.7"; };} 8 { case = "8.14"; out = { version = "1.13.7"; };} 9 { case = "8.15"; out = { version = "1.14.1"; };} 10 - ] { version = "1.14.1"; } ); 11 in mkCoqDerivation { 12 pname = "elpi"; 13 repo = "coq-elpi"; ··· 48 release."1.6.0".sha256 = "0kf99i43mlf750fr7fric764mm495a53mg5kahnbp6zcjcxxrm0b"; 49 releaseRev = v: "v${v}"; 50 51 mlPlugin = true; 52 - propagatedBuildInputs = [ elpi ]; 53 54 meta = { 55 description = "Coq plugin embedding ELPI.";
··· 7 { case = "8.13"; out = { version = "1.13.7"; };} 8 { case = "8.14"; out = { version = "1.13.7"; };} 9 { case = "8.15"; out = { version = "1.14.1"; };} 10 + ] {}); 11 in mkCoqDerivation { 12 pname = "elpi"; 13 repo = "coq-elpi"; ··· 48 release."1.6.0".sha256 = "0kf99i43mlf750fr7fric764mm495a53mg5kahnbp6zcjcxxrm0b"; 49 releaseRev = v: "v${v}"; 50 51 + extraNativeBuildInputs = [ which elpi ]; 52 mlPlugin = true; 53 54 meta = { 55 description = "Coq plugin embedding ELPI.";
+2 -1
pkgs/development/coq-modules/coqeal/default.nix
··· 1 { coq, mkCoqDerivation, mathcomp, bignums, paramcoq, multinomials, 2 mathcomp-real-closed, 3 - lib, version ? null }: 4 5 with lib; 6 ··· 22 release."1.0.4".sha256 = "1g5m26lr2lwxh6ld2gykailhay4d0ayql4bfh0aiwqpmmczmxipk"; 23 release."1.0.3".sha256 = "0hc63ny7phzbihy8l7wxjvn3haxx8jfnhi91iw8hkq8n29i23v24"; 24 25 propagatedBuildInputs = [ mathcomp.algebra bignums paramcoq multinomials ]; 26 27 meta = {
··· 1 { coq, mkCoqDerivation, mathcomp, bignums, paramcoq, multinomials, 2 mathcomp-real-closed, 3 + lib, which, version ? null }: 4 5 with lib; 6 ··· 22 release."1.0.4".sha256 = "1g5m26lr2lwxh6ld2gykailhay4d0ayql4bfh0aiwqpmmczmxipk"; 23 release."1.0.3".sha256 = "0hc63ny7phzbihy8l7wxjvn3haxx8jfnhi91iw8hkq8n29i23v24"; 24 25 + extraBuildInputs = [ which ]; 26 propagatedBuildInputs = [ mathcomp.algebra bignums paramcoq multinomials ]; 27 28 meta = {
+2 -4
pkgs/development/coq-modules/coqhammer/default.nix
··· 28 release."1.3-coq8.12".sha256 = "1q1y3cwhd98pkm98g71fsdjz85bfwgcz2xn7s7wwmiraifv5l6z8"; 29 release."1.3-coq8.11".sha256 = "08zf8qfna7b9p2myfaz4g7bas3a1q1156x78n5isqivlnqfrjc1b"; 30 release."1.3-coq8.10".sha256 = "1fj8497ir4m79hyrmmmmrag01001wrby0h24wv6525vz0w5py3cd"; 31 - release."1.1.1-coq8.9" = { sha256 = "1knjmz4hr8vlp103j8n4fyb2lfxysnm512gh3m2kp85n6as6fvb9"; 32 - rev = "f8b4d81a213aa1f25afbe53c7c9ca1b15e3d42bc"; }; 33 - release."1.1-coq8.8" = { sha256 = "0ms086wp4jmrzyglb8wymchzyflflk01nsfsk4r6qv8rrx81nx9h"; 34 - rev = "c3cb54b4d5f33fab372d33c7189861368a08fa22"; }; 35 36 release."1.3.1-coq8.13".version = "1.3.1"; 37 release."1.3.1-coq8.12".version = "1.3.1";
··· 28 release."1.3-coq8.12".sha256 = "1q1y3cwhd98pkm98g71fsdjz85bfwgcz2xn7s7wwmiraifv5l6z8"; 29 release."1.3-coq8.11".sha256 = "08zf8qfna7b9p2myfaz4g7bas3a1q1156x78n5isqivlnqfrjc1b"; 30 release."1.3-coq8.10".sha256 = "1fj8497ir4m79hyrmmmmrag01001wrby0h24wv6525vz0w5py3cd"; 31 + release."1.1.1-coq8.9".sha256 = "1knjmz4hr8vlp103j8n4fyb2lfxysnm512gh3m2kp85n6as6fvb9"; 32 + release."1.1-coq8.8".sha256 = "0ms086wp4jmrzyglb8wymchzyflflk01nsfsk4r6qv8rrx81nx9h"; 33 34 release."1.3.1-coq8.13".version = "1.3.1"; 35 release."1.3.1-coq8.12".version = "1.3.1";
+1
pkgs/development/coq-modules/coqprime/default.nix
··· 20 release."8.7.2".sha256 = "15zlcrx06qqxjy3nhh22wzy0rb4npc8l4nx2bbsfsvrisbq1qb7k"; 21 releaseRev = v: "v${v}"; 22 23 propagatedBuildInputs = [ bignums ]; 24 25 meta = with lib; {
··· 20 release."8.7.2".sha256 = "15zlcrx06qqxjy3nhh22wzy0rb4npc8l4nx2bbsfsvrisbq1qb7k"; 21 releaseRev = v: "v${v}"; 22 23 + extraBuildInputs = [ which ]; 24 propagatedBuildInputs = [ bignums ]; 25 26 meta = with lib; {
+3 -1
pkgs/development/coq-modules/coqtail-math/default.nix
··· 14 release."8.14".sha256 = "sha256:1k8f8idjnx0mf4z479vcx55iz42rjxrbplbznv80m2famxakq03c"; 15 release."20201124".rev = "5c22c3d7dcd8cf4c47cf84a281780f5915488e9e"; 16 release."20201124".sha256 = "sha256-wd+Lh7dpAD4zfpyKuztDmSFEZo5ZiFrR8ti2jUCVvoQ="; 17 - mlPlugin = true; 18 meta = { 19 license = licenses.lgpl3Only; 20 maintainers = [ maintainers.siraben ];
··· 14 release."8.14".sha256 = "sha256:1k8f8idjnx0mf4z479vcx55iz42rjxrbplbznv80m2famxakq03c"; 15 release."20201124".rev = "5c22c3d7dcd8cf4c47cf84a281780f5915488e9e"; 16 release."20201124".sha256 = "sha256-wd+Lh7dpAD4zfpyKuztDmSFEZo5ZiFrR8ti2jUCVvoQ="; 17 + 18 + extraNativeBuildInputs = with coq.ocamlPackages; [ ocaml findlib ]; 19 + 20 meta = { 21 license = licenses.lgpl3Only; 22 maintainers = [ maintainers.siraben ];
+2 -2
pkgs/development/coq-modules/coquelicot/default.nix
··· 1 - { lib, mkCoqDerivation, autoconf, 2 coq, ssreflect, version ? null }: 3 4 with lib; mkCoqDerivation { ··· 16 release."3.0.2".sha256 = "1rqfbbskgz7b1bcpva8wh3v3456sq2364y804f94sc8y5sij23nl"; 17 releaseRev = v: "coquelicot-${v}"; 18 19 - nativeBuildInputs = [ autoconf ]; 20 propagatedBuildInputs = [ ssreflect ]; 21 useMelquiondRemake.logpath = "Coquelicot"; 22
··· 1 + { lib, mkCoqDerivation, which, autoconf, 2 coq, ssreflect, version ? null }: 3 4 with lib; mkCoqDerivation { ··· 16 release."3.0.2".sha256 = "1rqfbbskgz7b1bcpva8wh3v3456sq2364y804f94sc8y5sij23nl"; 17 releaseRev = v: "coquelicot-${v}"; 18 19 + extraNativeBuildInputs = [ which autoconf ]; 20 propagatedBuildInputs = [ ssreflect ]; 21 useMelquiondRemake.logpath = "Coquelicot"; 22
+2 -2
pkgs/development/coq-modules/dpdgraph/default.nix
··· 39 release."0.6".sha256 = "0qvar8gfbrcs9fmvkph5asqz4l5fi63caykx3bsn8zf0xllkwv0n"; 40 releaseRev = v: "v${v}"; 41 42 - nativeBuildInputs = [ autoreconfHook ]; 43 mlPlugin = true; 44 - buildInputs = [ coq.ocamlPackages.ocamlgraph ]; 45 46 # dpd_compute.ml uses deprecated Pervasives.compare 47 # Versions prior to 0.6.5 do not have the WARN_ERR build flag
··· 39 release."0.6".sha256 = "0qvar8gfbrcs9fmvkph5asqz4l5fi63caykx3bsn8zf0xllkwv0n"; 40 releaseRev = v: "v${v}"; 41 42 + extraNativeBuildInputs = [ autoreconfHook ]; 43 mlPlugin = true; 44 + extraBuildInputs = [ coq.ocamlPackages.ocamlgraph ]; 45 46 # dpd_compute.ml uses deprecated Pervasives.compare 47 # Versions prior to 0.6.5 do not have the WARN_ERR build flag
+2 -2
pkgs/development/coq-modules/fiat/HEAD.nix
··· 8 inherit version; 9 defaultVersion = if coq.coq-version == "8.5" then "2016-10-24" else null; 10 release."2016-10-24".rev = "7feb6c64be9ebcc05924ec58fe1463e73ec8206a"; 11 - release."2016-10-24".sha256 = "16y57vibq3f5i5avgj80f4i3aw46wdwzx36k5d3pf3qk17qrlrdi"; 12 13 mlPlugin = true; 14 - buildInputs = [ python27 ]; 15 16 prePatch = "patchShebangs etc/coq-scripts"; 17
··· 8 inherit version; 9 defaultVersion = if coq.coq-version == "8.5" then "2016-10-24" else null; 10 release."2016-10-24".rev = "7feb6c64be9ebcc05924ec58fe1463e73ec8206a"; 11 + release."2016-10-24".sha256 = "0griqc675yylf9rvadlfsabz41qy5f5idya30p5rv6ysiakxya64"; 12 13 mlPlugin = true; 14 + extraBuildInputs = [ python27 ]; 15 16 prePatch = "patchShebangs etc/coq-scripts"; 17
+2 -2
pkgs/development/coq-modules/flocq/default.nix
··· 1 - { lib, bash, autoconf, automake, 2 mkCoqDerivation, coq, version ? null }: 3 4 with lib; mkCoqDerivation { ··· 16 release."2.6.1".sha256 = "0q5a038ww5dn72yvwn5298d3ridkcngb1dik8hdyr3xh7gr5qibj"; 17 releaseRev = v: "flocq-${v}"; 18 19 - nativeBuildInputs = [ bash autoconf ]; 20 mlPlugin = true; 21 useMelquiondRemake.logpath = "Flocq"; 22
··· 1 + { lib, which, autoconf, automake, 2 mkCoqDerivation, coq, version ? null }: 3 4 with lib; mkCoqDerivation { ··· 16 release."2.6.1".sha256 = "0q5a038ww5dn72yvwn5298d3ridkcngb1dik8hdyr3xh7gr5qibj"; 17 releaseRev = v: "flocq-${v}"; 18 19 + nativeBuildInputs = [ which autoconf ]; 20 mlPlugin = true; 21 useMelquiondRemake.logpath = "Flocq"; 22
+1 -1
pkgs/development/coq-modules/gappalib/default.nix
··· 13 release."1.4.4".sha256 = "114q2hgw64j6kqa9mg3qcp1nlf0ia46z2xadq81fnkxqm856ml7l"; 14 releaseRev = v: "gappalib-coq-${v}"; 15 16 - nativeBuildInputs = [ autoconf ]; 17 mlPlugin = true; 18 propagatedBuildInputs = [ flocq ]; 19 useMelquiondRemake.logpath = "Gappa";
··· 13 release."1.4.4".sha256 = "114q2hgw64j6kqa9mg3qcp1nlf0ia46z2xadq81fnkxqm856ml7l"; 14 releaseRev = v: "gappalib-coq-${v}"; 15 16 + extraNativeBuildInputs = [ which autoconf ]; 17 mlPlugin = true; 18 propagatedBuildInputs = [ flocq ]; 19 useMelquiondRemake.logpath = "Gappa";
+6 -10
pkgs/development/coq-modules/heq/default.nix
··· 1 {lib, fetchzip, mkCoqDerivation, coq, version ? null }: 2 3 - let fetcher = {rev, repo, owner, sha256, domain, ...}: 4 - fetchzip { 5 - url = "https://${domain}/${owner}/${repo}/download/${repo}-${rev}.zip"; 6 - inherit sha256; 7 - }; in 8 with lib; mkCoqDerivation { 9 pname = "heq"; 10 repo = "Heq"; 11 - owner = "gil.hur"; 12 - domain = "sf.snu.ac.kr"; 13 inherit version fetcher; 14 defaultVersion = if versions.isLt "8.8" coq.coq-version then "0.92" else null; 15 release."0.92".sha256 = "0cf8y6728n81wwlbpq3vi7l2dbzi7759klypld4gpsjjp1y1fj74"; 16 17 mlPlugin = true; 18 - preBuild = "cd src"; 19 20 - extraInstallFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ]; 21 22 meta = { 23 - homepage = "https://ropas.snu.ac.kr/~gil.hur/Heq/"; 24 description = "Heq : a Coq library for Heterogeneous Equality"; 25 maintainers = with maintainers; [ jwiegley ]; 26 };
··· 1 {lib, fetchzip, mkCoqDerivation, coq, version ? null }: 2 3 with lib; mkCoqDerivation { 4 pname = "heq"; 5 repo = "Heq"; 6 + owner = "gil"; 7 + domain = "mpi-sws.org"; 8 inherit version fetcher; 9 defaultVersion = if versions.isLt "8.8" coq.coq-version then "0.92" else null; 10 release."0.92".sha256 = "0cf8y6728n81wwlbpq3vi7l2dbzi7759klypld4gpsjjp1y1fj74"; 11 12 mlPlugin = true; 13 + propagatedBuildInputs = [ coq ]; 14 15 + extraInstallFlags = [ "COQLIB=$out/lib/coq/${coq.coq-version}" ]; 16 + preBuild = "cd src"; 17 18 meta = { 19 + homepage = "https://www.mpi-sws.org/~gil/Heq/"; 20 description = "Heq : a Coq library for Heterogeneous Equality"; 21 maintainers = with maintainers; [ jwiegley ]; 22 };
+4 -1
pkgs/development/coq-modules/hierarchy-builder/default.nix
··· 1 - { lib, mkCoqDerivation, coq, coq-elpi, version ? null }: 2 3 with lib; let hb = mkCoqDerivation { 4 pname = "hierarchy-builder"; ··· 17 release."0.10.0".sha256 = "1a3vry9nzavrlrdlq3cys3f8kpq3bz447q8c4c7lh2qal61wb32h"; 18 releaseRev = v: "v${v}"; 19 20 propagatedBuildInputs = [ coq-elpi ]; 21 22 mlPlugin = true; 23 24 extraInstallFlags = [ "VFILES=structures.v" ]; 25 26 meta = {
··· 1 + { lib, mkCoqDerivation, which, coq, coq-elpi, version ? null }: 2 3 with lib; let hb = mkCoqDerivation { 4 pname = "hierarchy-builder"; ··· 17 release."0.10.0".sha256 = "1a3vry9nzavrlrdlq3cys3f8kpq3bz447q8c4c7lh2qal61wb32h"; 18 releaseRev = v: "v${v}"; 19 20 + extraNativeBuildInputs = [ which ]; 21 + 22 propagatedBuildInputs = [ coq-elpi ]; 23 24 mlPlugin = true; 25 26 + installFlags = [ "DESTDIR=$(out)" "COQMF_COQLIB=lib/coq/${coq.coq-version}" ]; 27 extraInstallFlags = [ "VFILES=structures.v" ]; 28 29 meta = {
+3 -5
pkgs/development/coq-modules/interval/default.nix
··· 1 - { lib, mkCoqDerivation, autoconf, coq, coquelicot, flocq, 2 - mathcomp-ssreflect, mathcomp-fingroup, bignums ? null, gnuplot_qt, version ? null }: 3 4 mkCoqDerivation rec { 5 pname = "interval"; ··· 21 release."3.3.0".sha256 = "0lz2hgggzn4cvklvm8rpaxvwaryf37i8mzqajqgdxdbd8f12acsz"; 22 releaseRev = v: "interval-${v}"; 23 24 - nativeBuildInputs = [ autoconf ]; 25 - propagatedBuildInputs = lib.optional (lib.versions.isGe "8.6" coq.coq-version) bignums 26 - ++ [ coquelicot flocq mathcomp-ssreflect mathcomp-fingroup ] 27 ++ lib.optionals (lib.versions.isGe "4.2.0" defaultVersion) [ gnuplot_qt ]; 28 useMelquiondRemake.logpath = "Interval"; 29 mlPlugin = true;
··· 1 + { lib, mkCoqDerivation, which, autoconf, coq, coquelicot, flocq, mathcomp-ssreflect, mathcomp-fingroup, bignums ? null, gnuplot_qt, version ? null }: 2 3 mkCoqDerivation rec { 4 pname = "interval"; ··· 20 release."3.3.0".sha256 = "0lz2hgggzn4cvklvm8rpaxvwaryf37i8mzqajqgdxdbd8f12acsz"; 21 releaseRev = v: "interval-${v}"; 22 23 + extraNativeBuildInputs = [ which autoconf ]; 24 + propagatedBuildInputs = [ bignums coquelicot flocq mathcomp-ssreflect mathcomp-fingroup ] 25 ++ lib.optionals (lib.versions.isGe "4.2.0" defaultVersion) [ gnuplot_qt ]; 26 useMelquiondRemake.logpath = "Interval"; 27 mlPlugin = true;
+1 -1
pkgs/development/coq-modules/itauto/default.nix
··· 17 ] null; 18 19 mlPlugin = true; 20 - nativeBuildInputs = (with coq.ocamlPackages; [ ocamlbuild ]); 21 enableParallelBuilding = false; 22 23 meta = {
··· 17 ] null; 18 19 mlPlugin = true; 20 + extraNativeBuildInputs = (with coq.ocamlPackages; [ ocamlbuild ]); 21 enableParallelBuilding = false; 22 23 meta = {
+1
pkgs/development/coq-modules/ltac2/default.nix
··· 17 release."0.1-8.7".rev = "v0.1-8.7"; 18 release."0.1-8.7".sha256 = "0l6wiwi4cvd0i324fb29i9mdh0ijlxzggw4mrjjy695l2qdnlgg0"; 19 20 mlPlugin = true; 21 22 meta = {
··· 17 release."0.1-8.7".rev = "v0.1-8.7"; 18 release."0.1-8.7".sha256 = "0l6wiwi4cvd0i324fb29i9mdh0ijlxzggw4mrjjy695l2qdnlgg0"; 19 20 + nativeBuildInputs = [ which ]; 21 mlPlugin = true; 22 23 meta = {
+1 -1
pkgs/development/coq-modules/math-classes/default.nix
··· 9 release."8.13.0".sha256 = "1ln7ziivfbxzbdvlhbvyg3v30jgblncmwcsam6gg3d1zz6r7cbby"; 10 release."8.15.0".sha256 = "10w1hm537k6jx8a8vghq1yx12rsa0sjk2ipv3scgir71ln30hllw"; 11 12 - propagatedBuildInputs = [ bignums ]; 13 14 meta = { 15 homepage = "https://math-classes.github.io";
··· 9 release."8.13.0".sha256 = "1ln7ziivfbxzbdvlhbvyg3v30jgblncmwcsam6gg3d1zz6r7cbby"; 10 release."8.15.0".sha256 = "10w1hm537k6jx8a8vghq1yx12rsa0sjk2ipv3scgir71ln30hllw"; 11 12 + extraBuildInputs = [ bignums ]; 13 14 meta = { 15 homepage = "https://math-classes.github.io";
+4 -5
pkgs/development/coq-modules/mathcomp/default.nix
··· 10 # See the documentation at doc/languages-frameworks/coq.section.md. # 11 ############################################################################ 12 13 - { lib, ncurses, graphviz, lua, fetchzip, 14 mkCoqDerivation, recurseIntoAttrs, withDoc ? false, single ? false, 15 - coqPackages, coq, version ? null }@args: 16 with builtins // lib; 17 let 18 repo = "math-comp"; ··· 60 inherit version pname defaultVersion release releaseRev repo owner; 61 62 mlPlugin = versions.isLe "8.6" coq.coq-version; 63 - nativeBuildInputs = optionals withDoc [ graphviz lua ]; 64 - buildInputs = [ ncurses ]; 65 - propagatedBuildInputs = mathcomp-deps; 66 67 buildFlags = optional withDoc "doc"; 68
··· 10 # See the documentation at doc/languages-frameworks/coq.section.md. # 11 ############################################################################ 12 13 + { lib, ncurses, which, graphviz, lua, fetchzip, 14 mkCoqDerivation, recurseIntoAttrs, withDoc ? false, single ? false, 15 + coqPackages, coq, ocamlPackages, version ? null }@args: 16 with builtins // lib; 17 let 18 repo = "math-comp"; ··· 60 inherit version pname defaultVersion release releaseRev repo owner; 61 62 mlPlugin = versions.isLe "8.6" coq.coq-version; 63 + extraNativeBuildInputs = [ which ] ++ optionals withDoc [ graphviz lua ]; 64 + extraBuildInputs = [ ncurses ] ++ mathcomp-deps; 65 66 buildFlags = optional withDoc "doc"; 67
+4 -2
pkgs/development/coq-modules/metacoq/default.nix
··· 1 - { lib, fetchzip, 2 mkCoqDerivation, recurseIntoAttrs, single ? false, 3 coqPackages, coq, equations, version ? null }@args: 4 with builtins // lib; ··· 36 derivation = mkCoqDerivation ({ 37 inherit version pname defaultVersion release releaseRev repo owner; 38 39 mlPlugin = true; 40 - propagatedBuildInputs = [ equations coq.ocamlPackages.zarith ] ++ metacoq-deps; 41 42 patchPhase = '' 43 patchShebangs ./configure.sh
··· 1 + { lib, which, fetchzip, 2 mkCoqDerivation, recurseIntoAttrs, single ? false, 3 coqPackages, coq, equations, version ? null }@args: 4 with builtins // lib; ··· 36 derivation = mkCoqDerivation ({ 37 inherit version pname defaultVersion release releaseRev repo owner; 38 39 + extraNativeBuildInputs = [ which ]; 40 mlPlugin = true; 41 + extraBuildInputs = [ coq.ocamlPackages.zarith ]; 42 + propagatedBuildInputs = [ equations ] ++ metacoq-deps; 43 44 patchPhase = '' 45 patchShebangs ./configure.sh
+1
pkgs/development/coq-modules/metalib/default.nix
··· 13 release."8.10".sha256 = "0wbypc05d2lqfm9qaw98ynr5yc1p0ipsvyc3bh1rk9nz7zwirmjs"; 14 15 sourceRoot = "source/Metalib"; 16 17 meta = { 18 license = licenses.mit;
··· 13 release."8.10".sha256 = "0wbypc05d2lqfm9qaw98ynr5yc1p0ipsvyc3bh1rk9nz7zwirmjs"; 14 15 sourceRoot = "source/Metalib"; 16 + installFlags = "COQMF_COQLIB=$(out)/lib/coq/${coq.coq-version}"; 17 18 meta = { 19 license = licenses.mit;
+2 -2
pkgs/development/coq-modules/semantics/default.nix
··· 24 ] null; 25 26 mlPlugin = true; 27 - nativeBuildInputs = (with coq.ocamlPackages; [ ocamlbuild ]); 28 - propagatedBuildInputs = (with coq.ocamlPackages; [ num ]); 29 30 postPatch = '' 31 for p in Make Makefile.coq.local
··· 24 ] null; 25 26 mlPlugin = true; 27 + extraNativeBuildInputs = (with coq.ocamlPackages; [ ocamlbuild ]); 28 + extraBuildInputs = (with coq.ocamlPackages; [ num ]); 29 30 postPatch = '' 31 for p in Make Makefile.coq.local
+4 -2
pkgs/development/coq-modules/simple-io/default.nix
··· 11 ] null; 12 release."1.7.0".sha256 = "sha256:1a1q9x2abx71hqvjdai3n12jxzd49mhf3nqqh3ya2ssl2lj609ci"; 13 release."1.3.0".sha256 = "1yp7ca36jyl9kz35ghxig45x6cd0bny2bpmy058359p94wc617ax"; 14 mlPlugin = true; 15 - nativeBuildInputs = [ coq.ocamlPackages.cppo ]; 16 - propagatedBuildInputs = [ coq-ext-lib coq.ocamlPackages.ocamlbuild ]; 17 18 doCheck = true; 19 checkTarget = "test";
··· 11 ] null; 12 release."1.7.0".sha256 = "sha256:1a1q9x2abx71hqvjdai3n12jxzd49mhf3nqqh3ya2ssl2lj609ci"; 13 release."1.3.0".sha256 = "1yp7ca36jyl9kz35ghxig45x6cd0bny2bpmy058359p94wc617ax"; 14 + extraNativeBuildInputs = (with coq.ocamlPackages; [ cppo zarith ]); 15 + propagatedBuildInputs = [ coq-ext-lib ] 16 + ++ (with coq.ocamlPackages; [ ocaml ocamlbuild ]); 17 + 18 mlPlugin = true; 19 20 doCheck = true; 21 checkTarget = "test";
+3 -5
pkgs/development/coq-modules/smtcoq/default.nix
··· 13 { case = isEq "8.13"; out = "itp22"; } 14 ] null; 15 16 - propagatedBuildInputs = [ trakt cvc4 ] 17 - ++ lib.optionals (!stdenv.isDarwin) [ veriT ] 18 - ++ (with coq.ocamlPackages; [ num zarith ]); 19 - mlPlugin = true; 20 - nativeBuildInputs = with coq.ocamlPackages; [ ocamlbuild ]; 21 22 meta = { 23 description = "Communication between Coq and SAT/SMT solvers ";
··· 13 { case = isEq "8.13"; out = "itp22"; } 14 ] null; 15 16 + propagatedBuildInputs = [ trakt cvc4 ] ++ lib.optionals (!stdenv.isDarwin) [ veriT ]; 17 + extraNativeBuildInputs = with coq.ocamlPackages; [ ocaml ocamlbuild ]; 18 + extraBuildInputs = with coq.ocamlPackages; [ findlib num zarith ]; 19 20 meta = { 21 description = "Communication between Coq and SAT/SMT solvers ";
+3 -9
pkgs/development/ocaml-modules/elpi/default.nix
··· 1 - { stdenv, lib, fetchzip, bash 2 - , buildDunePackage, camlp5 3 , re, perl, ncurses 4 , ppxlib, ppx_deriving 5 , ppxlib_0_15, ppx_deriving_0_15 6 - , coqPackages 7 , version ? "1.14.1" 8 }: 9 with lib; 10 - let fetched = coqPackages.metaFetch ({ 11 release."1.14.1".sha256 = "sha256-BZPVL8ymjrE9kVGyf6bpc+GA2spS5JBpkUtZi04nPis="; 12 release."1.13.7".sha256 = "10fnwz30bsvj7ii1vg4l1li5pd7n0qqmwj18snkdr5j9gk0apc1r"; 13 release."1.13.5".sha256 = "02a6r23mximrdvs6kgv6rp0r2dgk7zynbs99nn7lphw2c4189kka"; ··· 32 then [ ppxlib ppx_deriving ] 33 else [ ppxlib_0_15 ppx_deriving_0_15 ] 34 ); 35 - 36 - patchPhase = '' 37 - sed -e "s/SHELL:=/SHELL?=/" -i Makefile || true 38 - ''; 39 - buildPhase = "SHELL=${bash} make build"; 40 41 meta = { 42 description = "Embeddable λProlog Interpreter";
··· 1 + { stdenv, lib, fetchzip, buildDunePackage, camlp5 2 , re, perl, ncurses 3 , ppxlib, ppx_deriving 4 , ppxlib_0_15, ppx_deriving_0_15 5 , version ? "1.14.1" 6 }: 7 with lib; 8 + let fetched = import ../../../build-support/coq/meta-fetch/default.nix 9 + {inherit lib stdenv fetchzip; } ({ 10 release."1.14.1".sha256 = "sha256-BZPVL8ymjrE9kVGyf6bpc+GA2spS5JBpkUtZi04nPis="; 11 release."1.13.7".sha256 = "10fnwz30bsvj7ii1vg4l1li5pd7n0qqmwj18snkdr5j9gk0apc1r"; 12 release."1.13.5".sha256 = "02a6r23mximrdvs6kgv6rp0r2dgk7zynbs99nn7lphw2c4189kka"; ··· 31 then [ ppxlib ppx_deriving ] 32 else [ ppxlib_0_15 ppx_deriving_0_15 ] 33 ); 34 35 meta = { 36 description = "Embeddable λProlog Interpreter";
+1 -4
pkgs/top-level/coq-packages.nix
··· 1 - { lib, stdenv, fetchzip 2 - , callPackage, newScope, recurseIntoAttrs, ocamlPackages_4_05, ocamlPackages_4_09 3 , ocamlPackages_4_10, ocamlPackages_4_12, fetchpatch, makeWrapper, coq2html 4 }@args: 5 let lib = import ../build-support/coq/extra-lib.nix {inherit (args) lib;}; in ··· 9 inherit coq lib; 10 coqPackages = self; 11 12 - metaFetch = import ../build-support/coq/meta-fetch/default.nix 13 - {inherit lib stdenv fetchzip; }; 14 mkCoqDerivation = callPackage ../build-support/coq {}; 15 16 contribs = recurseIntoAttrs
··· 1 + { lib, stdenv, callPackage, newScope, recurseIntoAttrs, ocamlPackages_4_05, ocamlPackages_4_09 2 , ocamlPackages_4_10, ocamlPackages_4_12, fetchpatch, makeWrapper, coq2html 3 }@args: 4 let lib = import ../build-support/coq/extra-lib.nix {inherit (args) lib;}; in ··· 8 inherit coq lib; 9 coqPackages = self; 10 11 mkCoqDerivation = callPackage ../build-support/coq {}; 12 13 contribs = recurseIntoAttrs