Commit 03444186 authored by Pierre Roux's avatar Pierre Roux
Browse files

rocqPackages.mathcomp-finmap: init at 2.2.2

parent 6d859f6a
Loading
Loading
Loading
Loading
+67 −57
Original line number Diff line number Diff line
@@ -6,7 +6,8 @@
  version ? null,
}:

mkCoqDerivation {
let
  derivation = mkCoqDerivation {

    namePrefix = [
      "coq"
@@ -66,4 +67,13 @@ mkCoqDerivation {
      description = "Finset and finmap library";
      license = lib.licenses.cecill-b;
    };
  };
in
# this is just a wrapper for rocqPackages.mathcomp-finmap for Rocq >= 9.0
if coq.rocqPackages ? mathcomp-finmap then
  coq.rocqPackages.mathcomp-finmap.override {
    inherit version mathcomp-boot;
    inherit (coq.rocqPackages) rocq-core;
  }
else
  derivation
+45 −0
Original line number Diff line number Diff line
{
  rocq-core,
  mkRocqDerivation,
  mathcomp-boot,
  lib,
  version ? null,
}:

mkRocqDerivation {

  namePrefix = [
    "rocq-core"
    "mathcomp"
  ];
  pname = "finmap";
  owner = "math-comp";
  inherit version;
  defaultVersion =
    let
      case = rocq: mc: out: {
        cases = [
          rocq
          mc
        ];
        inherit out;
      };
    in
    with lib.versions;
    lib.switch
      [ rocq-core.rocq-version mathcomp-boot.version ]
      [
        (case (range "9.0" "9.1") (range "2.3" "2.5") "2.2.2")
      ]
      null;
  release = {
    "2.2.2".sha256 = "sha256-G5fSdx4MhOXtQ2H8lpyK5FuIbWAZNc7vRL3hcYmGA2o=";
  };

  propagatedBuildInputs = [ mathcomp-boot ];

  meta = {
    description = "Finset and finmap library";
    license = lib.licenses.cecill-b;
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -47,6 +47,7 @@ let
      mathcomp-field = self.mathcomp.field;
      mathcomp-character = self.mathcomp.character;
      mathcomp-bigenough = callPackage ../development/rocq-modules/mathcomp-bigenough { };
      mathcomp-finmap = callPackage ../development/rocq-modules/mathcomp-finmap { };
      parseque = callPackage ../development/rocq-modules/parseque { };
      relation-algebra = callPackage ../development/rocq-modules/relation-algebra { };
      rocq-elpi = callPackage ../development/rocq-modules/rocq-elpi { };