Commit 6d859f6a authored by Pierre Roux's avatar Pierre Roux
Browse files

rocqPackages.mathcomp-bigenough: init at 1.0.4

parent 5ff64768
Loading
Loading
Loading
Loading
+39 −29
Original line number Diff line number Diff line
@@ -6,7 +6,8 @@
  version ? null,
}:

mkCoqDerivation {
let
  derivation = mkCoqDerivation {

    namePrefix = [
      "coq"
@@ -39,4 +40,13 @@ mkCoqDerivation {
      description = "Small library to do epsilon - N reasonning";
      license = lib.licenses.cecill-b;
    };
  };
in
# this is just a wrapper for rocqPackages.mathcomp-bigenough for Rocq >= 9.0
if coq.rocqPackages ? mathcomp-bigenough then
  coq.rocqPackages.mathcomp-bigenough.override {
    inherit version mathcomp-boot;
    inherit (coq.rocqPackages) rocq-core;
  }
else
  derivation
+37 −0
Original line number Diff line number Diff line
{
  rocq-core,
  mkRocqDerivation,
  mathcomp-boot,
  lib,
  version ? null,
}:

mkRocqDerivation {

  namePrefix = [
    "rocq-core"
    "mathcomp"
  ];
  pname = "bigenough";
  owner = "math-comp";

  release = {
    "1.0.4".sha256 = "sha256-cwfDCEFSXWnqV5aIrhTviUti0CXNwmFe6zVbqlD2iZw=";
  };
  inherit version;
  defaultVersion =
    let
      case = case: out: { inherit case out; };
    in
    with lib.versions;
    lib.switch rocq-core.rocq-version [
      (case (range "9.0" "9.1") "1.0.4")
    ] null;

  propagatedBuildInputs = [ mathcomp-boot ];

  meta = {
    description = "Small library to do epsilon - N reasonning";
    license = lib.licenses.cecill-b;
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -46,6 +46,7 @@ let
      mathcomp-solvable = self.mathcomp.solvable;
      mathcomp-field = self.mathcomp.field;
      mathcomp-character = self.mathcomp.character;
      mathcomp-bigenough = callPackage ../development/rocq-modules/mathcomp-bigenough { };
      parseque = callPackage ../development/rocq-modules/parseque { };
      relation-algebra = callPackage ../development/rocq-modules/relation-algebra { };
      rocq-elpi = callPackage ../development/rocq-modules/rocq-elpi { };