agdaPackages.cubical: clean up

- use `C.UTF-8` so that we don't have to depend on glibcLocales
- remove now unnecessary AGDA_EXEC
- run pre/post-build hooks
- add ncfavier as maintainer
This commit is contained in:
Naïm Favier 2023-01-12 18:32:26 +01:00
parent e22f213ae1
commit 1bc5ddcff4
No known key found for this signature in database
GPG key ID: 95AFCE8211908325

View file

@ -1,4 +1,4 @@
{ lib, mkDerivation, fetchFromGitHub, ghc, glibcLocales }:
{ lib, mkDerivation, fetchFromGitHub, ghc }:
mkDerivation rec {
pname = "cubical";
@ -11,15 +11,15 @@ mkDerivation rec {
hash = "sha256-bnHz5uZXZnn1Zd36tq/veA4yT7dhJ1c+AYpgdDfSRzE=";
};
LC_ALL = "en_US.UTF-8";
preConfigure = ''export AGDA_EXEC=agda'';
LC_ALL = "C.UTF-8";
# The cubical library has several `Everything.agda` files, which are
# compiled through the make file they provide.
nativeBuildInputs = [ ghc glibcLocales ];
nativeBuildInputs = [ ghc ];
buildPhase = ''
runHook preBuild
make
runHook postBuild
'';
meta = with lib; {
@ -28,6 +28,6 @@ mkDerivation rec {
homepage = src.meta.homepage;
license = licenses.mit;
platforms = platforms.unix;
maintainers = with maintainers; [ alexarice ryanorendorff ];
maintainers = with maintainers; [ alexarice ryanorendorff ncfavier ];
};
}