Unverified Commit 0b5e74ff authored by Vincent Laporte's avatar Vincent Laporte Committed by GitHub
Browse files

Flocq422 (#493248)

parents 2fc6539b 3db19845
Loading
Loading
Loading
Loading
+8 −20
Original line number Diff line number Diff line
@@ -38,28 +38,16 @@ let
    releaseRev = v: "v${v}";

    defaultVersion =
      let
        case = case: out: { inherit case out; };
      in
      with lib.versions;
      lib.switch coq.version [
        {
          case = range "8.15" "9.1";
          out = "3.17";
        }
        {
          case = range "8.14" "8.20";
          out = "3.15";
        }
        {
          case = isEq "8.13";
          out = "3.10";
        }
        {
          case = isEq "8.12";
          out = "3.9";
        }
        {
          case = range "8.8" "8.11";
          out = "3.8";
        }
        (case (range "8.15" "9.1") "3.17")
        (case (range "8.14" "8.20") "3.15")
        (case (isEq "8.13") "3.10")
        (case (isEq "8.12") "3.9")
        (case (range "8.8" "8.11") "3.8")
      ] null;

    release = {
+54 −42
Original line number Diff line number Diff line
@@ -8,7 +8,8 @@
  version ? null,
}:

mkCoqDerivation {
let
  derivation = mkCoqDerivation {
    pname = "flocq";
    owner = "flocq";
    domain = "gitlab.inria.fr";
@@ -19,6 +20,7 @@ mkCoqDerivation {
      in
      with lib.versions;
      lib.switch coq.coq-version [
        (case (range "8.15" "9.2") "4.2.2")
        (case (range "8.15" "9.1") "4.2.1")
        (case (range "8.14" "8.20") "4.2.0")
        (case (range "8.14" "8.18") "4.1.3")
@@ -27,6 +29,7 @@ mkCoqDerivation {
        (case (range "8.7" "8.15") "3.4.3")
        (case (range "8.5" "8.8") "2.6.1")
      ] null;
    release."4.2.2".sha256 = "sha256-1q4V6KyRb0tEeqBcBTUKmAxCJktqe/MN2C9zdbyv7hk=";
    release."4.2.1".sha256 = "sha256-W5hcAm0GGmNsvre79/iGNcoBwFzStC4G177hZ3ds/4E=";
    release."4.2.0".sha256 = "sha256-uTeo4GCs6wTLN3sLKsj0xLlt1fUDYfozXtq6iooLUgM=";
    release."4.1.4".sha256 = "sha256-Use6Mlx79yef1CkCPyGoOItsD69B9KR+mQArCtmre4s=";
@@ -53,4 +56,13 @@ mkCoqDerivation {
      license = lib.licenses.lgpl3;
      maintainers = with lib.maintainers; [ jwiegley ];
    };
  };
  patched-derivation = derivation.overrideAttrs (
    o:
    lib.optionalAttrs (o.version != null && (o.version == "dev" || lib.versions.isGe "4.2.2" o.version))
      {
        nativeBuildInputs = o.nativeBuildInputs ++ [ coq.ocamlPackages.ocaml ];
      }
  );
in
patched-derivation