-
Notifications
You must be signed in to change notification settings - Fork 1
/
hott.nix
32 lines (30 loc) · 1.39 KB
/
hott.nix
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
{ lib, mkCoqDerivation, coq, version ? null }:
let
oneOf = a: v: builtins.elem v a;
in mkCoqDerivation {
pname = "HoTT";
domain = "github.com";
owner = "HoTT";
inherit version;
defaultVersion = lib.switch coq.coq-version [
{ case = oneOf [ "8.10" "8.11" "8.12" "8.13" "8.13.1" "8.14" "8.15" "8.16" "8.17" ];
out = coq.coq-version; }
{ case = oneOf [ "8.13.2" ]; out = "8.13.1"; }
{ case = oneOf [ "8.14.1" ]; out = "8.14"; }
] null;
releaseRev = v: "V${v}";
release."8.10" .sha256 = "0ahfgqnf92fxcmrrvcam9z5v3c5sim38h8vh5pyfdnjznqrhjb3d";
release."8.11" .sha256 = "0070xjg2ph2hxi16ggvdnhn2b9gd0qbv49fazncz386hxb5v1cav";
release."8.12" .sha256 = "034ciyyzfqb8qh2fj9zpg5zg2kbv0f6bx0snc3bmbcb8gi6lgypd";
release."8.13" .sha256 = "1vg0czclp8cvcarfahdp5qlym3296ia8p2129vi2pyv6p67z82ch";
release."8.13.1".sha256 = "1n0n6rqkw5g4dl26s1sd7g5jgq8gnr9n1xs125pzqjx843c0zri1";
release."8.14" .sha256 = "1bdy6864lg8wpzc2d67k1dxjr0q66zdl4gkhfil37ccqk7df8igf";
release."8.15" .sha256 = "1n4zah2687l80v3sv47b5k08sdglcfkwnfqg97vkkbk7jm2s5xr5";
release."8.16" .sha256 = "0xpw6ii4km3c0iv02jl6rm2yhdvkba52d124dzk4xyahhv7iphf5";
release."8.17" .sha256 = "0pvaikisfknf7p4vm3swg0dwprqjk0k998idw1k34lzx6akx8d0s";
meta = {
description = "A formalisation of Homotopy Type Theory in Coq";
license = lib.licenses.bsd2;
maintainers = [ lib.maintainers.dwarfmaster ];
};
}