diff options
author | Vladimír Čunát <v@cunat.cz> | 2022-10-13 08:27:27 +0200 |
---|---|---|
committer | Vladimír Čunát <v@cunat.cz> | 2022-10-13 08:27:55 +0200 |
commit | 00a757ed3f6b90ed325f27a29fea17a527cb2f8e (patch) | |
tree | c70865338202ea122fd63d601ea54cdb3782d50e /pkgs/development/coq-modules | |
parent | 2a3f0a650f1b047df90294c6d646b8ecdba119fa (diff) | |
parent | 732ec9dcc0f8db600e7894131de9c36a7c3cefb2 (diff) | |
download | nixpkgs-00a757ed3f6b90ed325f27a29fea17a527cb2f8e.tar nixpkgs-00a757ed3f6b90ed325f27a29fea17a527cb2f8e.tar.gz nixpkgs-00a757ed3f6b90ed325f27a29fea17a527cb2f8e.tar.bz2 nixpkgs-00a757ed3f6b90ed325f27a29fea17a527cb2f8e.tar.lz nixpkgs-00a757ed3f6b90ed325f27a29fea17a527cb2f8e.tar.xz nixpkgs-00a757ed3f6b90ed325f27a29fea17a527cb2f8e.tar.zst nixpkgs-00a757ed3f6b90ed325f27a29fea17a527cb2f8e.zip |
Merge branch 'master' into staging
Diffstat (limited to 'pkgs/development/coq-modules')
-rw-r--r-- | pkgs/development/coq-modules/coq-elpi/default.nix | 2 | ||||
-rw-r--r-- | pkgs/development/coq-modules/mathcomp-analysis/default.nix | 24 |
2 files changed, 16 insertions, 10 deletions
diff --git a/pkgs/development/coq-modules/coq-elpi/default.nix b/pkgs/development/coq-modules/coq-elpi/default.nix index c872659b50c..8adea66a6de 100644 --- a/pkgs/development/coq-modules/coq-elpi/default.nix +++ b/pkgs/development/coq-modules/coq-elpi/default.nix @@ -53,6 +53,8 @@ in mkCoqDerivation { release."1.6.0".sha256 = "0kf99i43mlf750fr7fric764mm495a53mg5kahnbp6zcjcxxrm0b"; releaseRev = v: "v${v}"; + buildFlags = [ "OCAMLWARN=" ]; + mlPlugin = true; propagatedBuildInputs = [ elpi ]; diff --git a/pkgs/development/coq-modules/mathcomp-analysis/default.nix b/pkgs/development/coq-modules/mathcomp-analysis/default.nix index 99c760fce0c..a42b551d184 100644 --- a/pkgs/development/coq-modules/mathcomp-analysis/default.nix +++ b/pkgs/development/coq-modules/mathcomp-analysis/default.nix @@ -1,7 +1,8 @@ { lib, mkCoqDerivation, recurseIntoAttrs, - mathcomp, mathcomp-finmap, mathcomp-bigenough, mathcomp-real-closed, + mathcomp, mathcomp-finmap, mathcomp-bigenough, hierarchy-builder, + single ? false, coqPackages, coq, version ? null }@args: with builtins // lib; let @@ -36,20 +37,23 @@ let packages = [ "classical" "analysis" ]; mathcomp_ = package: let - analysis-deps = map mathcomp_ (head (splitList (pred.equal package) packages)); - pkgpath = if package == "analysis" then "theories" else "${package}"; - pname = "mathcomp-${package}"; + classical-deps = [ mathcomp.algebra mathcomp-finmap hierarchy-builder ]; + analysis-deps = [ mathcomp.field mathcomp-bigenough ]; + intra-deps = if package == "single" then [] + else map mathcomp_ (head (splitList (pred.equal package) packages)); + pkgpath = if package == "single" then "." + else if package == "analysis" then "theories" else "${package}"; + pname = if package == "single" then "mathcomp-analysis-single" + else "mathcomp-${package}"; derivation = mkCoqDerivation ({ inherit version pname defaultVersion release repo owner; namePrefix = [ "coq" "mathcomp" ]; propagatedBuildInputs = - (if package == "classical" then - [ mathcomp.ssreflect mathcomp.algebra mathcomp-finmap ] - else - [ mathcomp.field mathcomp-bigenough mathcomp-real-closed ]) - ++ [ analysis-deps ]; + intra-deps + ++ optionals (elem package [ "classical" "single" ]) classical-deps + ++ optionals (elem package [ "analysis" "single" ]) analysis-deps; preBuild = '' cd ${pkgpath} @@ -83,4 +87,4 @@ let ); in patched-derivation; in -mathcomp_ "analysis" +mathcomp_ (if single then "single" else "analysis") |