Skip to content

Commit

Permalink
agdaPackages.cubical: init at 0.2 (#76994)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Rice <alexrice999@hotmail.co.uk>
  • Loading branch information
ryanorendorff and alexarice committed May 19, 2020
1 parent 698e71d commit f7ad47a
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6700,6 +6700,12 @@
githubId = 889991;
name = "Ryan Artecona";
};
ryanorendorff = {
email = "12442942+ryanorendorff@users.noreply.github.com";
github = "ryanorendorff";
githubId = 12442942;
name = "Ryan Orendorff";
};
ryansydnor = {
email = "ryan.t.sydnor@gmail.com";
github = "ryansydnor";
Expand Down
33 changes: 33 additions & 0 deletions pkgs/development/libraries/agda/cubical/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{ lib, mkDerivation, fetchFromGitHub, ghc, glibcLocales }:

mkDerivation rec {

# Version 0.2 is meant to be used with the Agda 2.6.1 compiler.
pname = "cubical";
version = "0.2";

src = fetchFromGitHub {
repo = pname;
owner = "agda";
rev = "v${version}";
sha256 = "07qlp2f189jvzbn3aqvpqk2zxpkmkxhhkjsn62iq436kxqj3z6c2";
};

LC_ALL = "en_US.UTF-8";

# The cubical library has several `Everything.agda` files, which are
# compiled through the make file they provide.
nativeBuildInputs = [ ghc glibcLocales ];
buildPhase = ''
make
'';

meta = with lib; {
description =
"A cubical type theory library for use with the Agda compiler";
homepage = src.meta.homepage;
license = licenses.mit;
platforms = platforms.unix;
maintainers = with maintainers; [ alexarice ryanorendorff ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/agda-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,7 @@ let
agda-prelude = callPackage ../development/libraries/agda/agda-prelude { };

agda-categories = callPackage ../development/libraries/agda/agda-categories { };

cubical = callPackage ../development/libraries/agda/cubical { };
};
in mkAgdaPackages Agda

0 comments on commit f7ad47a

Please sign in to comment.