-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgroupoid-containers.nix
48 lines (42 loc) · 1.05 KB
/
groupoid-containers.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
agdaPackages,
cubical,
cubical-categorical-logic,
lib,
...
}: let
name = "groupoid-containers";
in
agdaPackages.mkDerivation {
pname = name;
version = "0.1.0";
src = builtins.path {
name = "${name}-source";
path = lib.sources.cleanSource ./.;
};
outputs = [ "out" "html" ];
postPatch = ''
patchShebangs ./gen-everything.sh
'';
buildPhase = ''
runHook preInstall
echo 'Generating list of modules...'
./gen-everything.sh
echo 'Checking `Everything.agda`...'
agda ./Everything.agda
echo 'Checking `README.agda`...'
agda ./README.agda
echo "Generating HTML docs..."
agda --html --html-dir=$html --highlight-occurrences ./README.agda
runHook postInstall
'';
buildInputs = [cubical cubical-categorical-logic];
meta = {
description = "An Agda playground 🛝";
longDescription = ''
A longer description of the package.
Potentially spanning multiple lines.
'';
platforms = lib.platforms.all;
};
}