summaryrefslogtreecommitdiffstats
path: root/pkgs/development/rocq-modules/fcsl-pcm/default.nix
blob: 38e2c7e1a0e039ba0471423033bb6a2bf0ccdb5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
  lib,
  mkCoqDerivation,
  coq,
  mathcomp-algebra,
  stdlib,
  version ? null,
}:

mkCoqDerivation {
  pname = "fcsl-pcm";
  owner = "imdea-software";
  inherit version;

  defaultVersion =
    let
      case = coq: mc: out: {
        cases = [
          coq
          mc
        ];
        inherit out;
      };
    in
    with lib.versions;
    lib.switch
      [ coq.coq-version mathcomp-algebra.version ]
      [
        (case (range "9.0" "9.1") (range "2.4.0" "2.5.0") "2.2.0")
      ]
      null;
  release."2.2.0".hash = "sha256-VnfK+RHWiq27hxEJ9stpVp609/dMiPH6UHFhzaHdAnM=";
  releaseRev = v: "v${v}";

  propagatedBuildInputs = [
    mathcomp-algebra
    stdlib
  ];

  meta = {
    description = "Coq library of Partial Commutative Monoids";
    license = lib.licenses.asl20;
    maintainers = [ lib.maintainers.proux01 ];
  };
}