2019-04-29 20:02:44 +01:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, alex
|
|
|
|
, happy
|
|
|
|
, Agda
|
|
|
|
, buildPlatform
|
|
|
|
, buildPackages
|
|
|
|
, ghcWithPackages
|
|
|
|
}:
|
|
|
|
|
2018-10-12 22:22:25 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2020-12-10 21:15:25 +00:00
|
|
|
version = "1.1.2";
|
2019-04-29 20:02:44 +01:00
|
|
|
pname = "cedille";
|
|
|
|
|
2018-10-12 22:22:25 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cedille";
|
|
|
|
repo = "cedille";
|
|
|
|
rev = "v${version}";
|
2020-12-10 21:15:25 +00:00
|
|
|
sha256 = "1j745q9sd32fhcb96wjq6xvyqq1k6imppjnya6x0n99fyfnqzvg9";
|
2019-04-29 20:02:44 +01:00
|
|
|
fetchSubmodules = true;
|
2018-10-12 22:22:25 +01:00
|
|
|
};
|
|
|
|
|
2020-12-10 21:15:25 +00:00
|
|
|
patches = [
|
|
|
|
./Fix-to-string.agda-to-compile-with-Agda-2.6.1.patch
|
|
|
|
];
|
|
|
|
|
2019-05-06 02:47:29 +01:00
|
|
|
nativeBuildInputs = [ alex happy ];
|
2019-04-29 20:02:44 +01:00
|
|
|
buildInputs = [ Agda (ghcWithPackages (ps: [ps.ieee])) ];
|
2018-10-22 09:42:01 +01:00
|
|
|
|
2018-10-12 22:22:25 +01:00
|
|
|
LANG = "en_US.UTF-8";
|
|
|
|
LOCALE_ARCHIVE =
|
|
|
|
lib.optionalString (buildPlatform.libc == "glibc")
|
|
|
|
"${buildPackages.glibcLocales}/lib/locale/locale-archive";
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs create-libraries.sh
|
2019-04-29 20:02:44 +01:00
|
|
|
'';
|
|
|
|
|
2018-10-12 22:22:25 +01:00
|
|
|
installPhase = ''
|
2019-04-29 20:02:44 +01:00
|
|
|
install -Dm755 -t $out/bin/ cedille
|
|
|
|
install -Dm755 -t $out/bin/ core/cedille-core
|
|
|
|
install -Dm644 -t $out/share/info docs/info/cedille-info-main.info
|
|
|
|
|
|
|
|
mkdir -p $out/lib/
|
|
|
|
cp -r lib/ $out/lib/cedille/
|
2018-10-12 22:22:25 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-04-29 20:02:44 +01:00
|
|
|
description = "An interactive theorem-prover and dependently typed programming language, based on extrinsic (aka Curry-style) type theory";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://cedille.github.io/";
|
2019-04-29 20:02:44 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ marsam mpickering ];
|
|
|
|
platforms = platforms.unix;
|
2018-10-12 22:22:25 +01:00
|
|
|
};
|
|
|
|
}
|