2023-01-20 10:41:00 +00:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub, ghc }:
|
2020-05-29 06:06:01 +00:00
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "cubical";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "0.7";
|
2020-05-29 06:06:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = pname;
|
|
|
|
owner = "agda";
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = "v${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-oLpKRWfQqb6CIscC2XM0ia9HJ8edJFHoPeql3kfvyrA=";
|
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;
|
2024-02-29 20:09:43 +00:00
|
|
|
maintainers = with maintainers; [ alexarice ryanorendorff ncfavier phijor ];
|
2020-05-29 06:06:01 +00:00
|
|
|
};
|
|
|
|
}
|