summaryrefslogtreecommitdiff
path: root/pkgs/development/coq-modules/http/default.nix
blob: 9d35d8c6ca84a941e51805f68cc993bfa9e3e18a (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
{
  lib,
  mkCoqDerivation,
  coq,
  QuickChick,
  async-test,
  version ? null,
}:

mkCoqDerivation {
  pname = "http";
  owner = "liyishuai";
  repo = "coq-http";
  inherit version;

  defaultVersion =
    let
      case = case: out: { inherit case out; };
      inherit (lib.versions) range;
    in
    lib.switch coq.coq-version [
      (case (range "8.14" "8.19") "0.2.1")
    ] null;
  release = {
    "0.2.1".sha256 = "sha256-CIcaXEojNdajXNoMBjGlQRc1sOJSKgUlditNxbNSPgk=";
  };
  releaseRev = v: "v${v}";

  propagatedBuildInputs = [
    QuickChick
    async-test
  ];

  configurePhase = ''
    sed -e 's/^	install extract.*//' -i Makefile
  '';

  meta = {
    description = "HTTP specification in Coq, testable and verifiable";
    license = lib.licenses.mpl20;
  };
}