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-01-20 10:41:00 +00:00
|
|
|
version = "0.4";
|
2020-05-29 06:06:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = pname;
|
|
|
|
owner = "agda";
|
2023-01-20 10:41:00 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-bnHz5uZXZnn1Zd36tq/veA4yT7dhJ1c+AYpgdDfSRzE=";
|
2020-05-29 06:06:01 +00:00
|
|
|
};
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
LC_ALL = "C.UTF-8";
|
2021-07-24 12:14:16 +00:00
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|