summary refs log tree commit diff
path: root/pkgs/development/coq-modules/HoTT/default.nix
blob: c4d20ed0f30b00a5108774e681d9587efe02c928 (plain) (blame)
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
{ lib, mkCoqDerivation, autoconf, automake, coq, version ? null }:

mkCoqDerivation {
  pname = "HoTT";
  repo = "Coq-HoTT";
  owner = "HoTT";
  inherit version;
  defaultVersion = with lib.versions; lib.switch coq.coq-version [
    { case = range "8.14" "8.16"; out = coq.coq-version; }
  ] null;
  releaseRev = v: "V${v}";
  release."8.16".sha256 = "sha256-xcEbz4ZQ+U7mb0SEJopaczfoRc2GSgF2BGzUSWI0/HY=";
  release."8.15".sha256 = "sha256-JfeiRZVnrjn3SQ87y6dj9DWNwCzrkK3HBogeZARUn9g=";
  release."8.14".sha256 = "sha256-7kXk2pmYsTNodHA+Qts3BoMsewvzmCbYvxw9Sgwyvq0=";

  patchPhase = ''
    patchShebangs etc
  '';

  meta = {
    homepage = "http://homotopytypetheory.org/";
    description = "Homotopy type theory";
    maintainers = with lib.maintainers; [ siddharthist ];
  };
}