2023-01-20 10:41:00 +00:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub, ghc }:
|
2020-05-29 06:06:01 +00:00
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "cubical";
|
2023-02-22 10:55:15 +00:00
|
|
|
version = "unstable-2023-02-09";
|
2020-05-29 06:06:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = pname;
|
|
|
|
owner = "agda";
|
2023-02-22 10:55:15 +00:00
|
|
|
rev = "6b1ce0b67fd94693c1a3e340c8e8765380de0edc";
|
|
|
|
hash = "sha256-XRCaW94oAgy2GOnFiI9c5A8mEx7AzlbT4pFd+PMmc9o=";
|
2020-05-29 06:06:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# The cubical library has several `Everything.agda` files, which are
|
|
|
|
# compiled through the make file they provide.
|
2023-01-20 10:41:00 +00:00
|
|
|
nativeBuildInputs = [ ghc ];
|
2020-05-29 06:06:01 +00:00
|
|
|
buildPhase = ''
|
2023-01-20 10:41:00 +00:00
|
|
|
runHook preBuild
|
2020-05-29 06:06:01 +00:00
|
|
|
make
|
2023-01-20 10:41:00 +00:00
|
|
|
runHook postBuild
|
2020-05-29 06:06:01 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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;
|
2023-01-20 10:41:00 +00:00
|
|
|
maintainers = with maintainers; [ alexarice ryanorendorff ncfavier ];
|
2020-05-29 06:06:01 +00:00
|
|
|
};
|
|
|
|
}
|