2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, alex
|
|
|
|
, happy
|
|
|
|
, Agda
|
|
|
|
, buildPlatform
|
|
|
|
, buildPackages
|
|
|
|
, ghcWithPackages
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-12-25 13:55:36 +00:00
|
|
|
version = "1.1.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "cedille";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cedille";
|
|
|
|
repo = "cedille";
|
|
|
|
rev = "v${version}";
|
2020-12-25 13:55:36 +00:00
|
|
|
sha256 = "1j745q9sd32fhcb96wjq6xvyqq1k6imppjnya6x0n99fyfnqzvg9";
|
2020-04-24 23:36:52 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
patches = [
|
|
|
|
./Fix-to-string.agda-to-compile-with-Agda-2.6.1.patch
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [ alex happy ];
|
|
|
|
buildInputs = [ Agda (ghcWithPackages (ps: [ps.ieee])) ];
|
|
|
|
|
|
|
|
LANG = "en_US.UTF-8";
|
|
|
|
LOCALE_ARCHIVE =
|
|
|
|
lib.optionalString (buildPlatform.libc == "glibc")
|
|
|
|
"${buildPackages.glibcLocales}/lib/locale/locale-archive";
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs create-libraries.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
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/
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "An interactive theorem-prover and dependently typed programming language, based on extrinsic (aka Curry-style) type theory";
|
|
|
|
homepage = "https://cedille.github.io/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ marsam mpickering ];
|
|
|
|
platforms = platforms.unix;
|
2021-07-17 21:14:59 +00:00
|
|
|
|
|
|
|
# Broken due to Agda update. See
|
|
|
|
# https://github.com/NixOS/nixpkgs/pull/129606#issuecomment-881107449.
|
|
|
|
broken = true;
|
|
|
|
hydraPlatforms = platforms.none;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|