summaryrefslogtreecommitdiff
path: root/pkgs/development/coq-modules/bbv/default.nix
blob: d0b19271f28f1d696d5eec8fb97ce25a23f745e3 (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
{
  lib,
  mkCoqDerivation,
  coq,
  stdlib,
  version ? null,
}:

mkCoqDerivation {
  pname = "bbv";
  owner = "mit-plv";
  inherit version;
  defaultVersion =
    let
      inherit (lib.versions) range;
    in
    lib.switch coq.coq-version [
      {
        case = range "8.16" "8.19";
        out = "1.5";
      }
    ] null;
  release = {
    "1.5".sha256 = "sha256-8/VPsfhNpuYpLmLC/hWszDhgvS6n8m7BRxUlea8PSUw=";
  };
  releaseRev = v: "v${v}";

  propagatedBuildInputs = [ stdlib ];

  meta = {
    description = "Implementation of bitvectors in Coq";
    license = lib.licenses.mit;
  };
}