summary refs log tree commit diff
path: root/pkgs/development/libraries/agda/1lab/default.nix
blob: 81afbe4886cdd8a42bdd8971cf3223c0ebd4e736 (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
26
27
28
29
30
31
32
{ lib, mkDerivation, fetchFromGitHub }:

mkDerivation rec {
  pname = "1lab";
  version = "unstable-2023-03-07";

  src = fetchFromGitHub {
    owner = "plt-amy";
    repo = pname;
    # Last commit that compiles with Agda 2.6.3
    rev = "c6ee57a2da327def241324b4775ec2c67cdab2af";
    hash = "sha256-zDqFaDZxAdFxYM6l2zc7ZTi4XwMThw1AQwHfvhOxzdg=";
  };

  # We don't need anything in support; avoid installing LICENSE.agda
  postPatch = ''
    rm -rf support
  '';

  libraryName = "cubical-1lab";
  libraryFile = "1lab.agda-lib";
  everythingFile = "src/index.lagda.md";

  meta = with lib; {
    description =
      "A formalised, cross-linked reference resource for mathematics done in Homotopy Type Theory ";
    homepage = src.meta.homepage;
    license = licenses.agpl3;
    platforms = platforms.unix;
    maintainers = with maintainers; [ ncfavier ];
  };
}