diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2018-10-12 21:22:25 +0000 |
---|---|---|
committer | Matthew Pickering <matthewtpickering@gmail.com> | 2018-10-14 19:17:23 +0000 |
commit | 43ae33728bace6deb31042ab61efb196c1b8e2b0 (patch) | |
tree | 7c9c1f5165d0e0b8e31f94837d35b18b372de696 /pkgs/applications/science/logic | |
parent | 561fcf4c820c6db65b0efeba675680c54f9f2e41 (diff) | |
download | nixlib-43ae33728bace6deb31042ab61efb196c1b8e2b0.tar nixlib-43ae33728bace6deb31042ab61efb196c1b8e2b0.tar.gz nixlib-43ae33728bace6deb31042ab61efb196c1b8e2b0.tar.bz2 nixlib-43ae33728bace6deb31042ab61efb196c1b8e2b0.tar.lz nixlib-43ae33728bace6deb31042ab61efb196c1b8e2b0.tar.xz nixlib-43ae33728bace6deb31042ab61efb196c1b8e2b0.tar.zst nixlib-43ae33728bace6deb31042ab61efb196c1b8e2b0.zip |
cedille: init at 1.0.0
Diffstat (limited to 'pkgs/applications/science/logic')
-rw-r--r-- | pkgs/applications/science/logic/cedille/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/applications/science/logic/cedille/default.nix b/pkgs/applications/science/logic/cedille/default.nix new file mode 100644 index 000000000000..5b99a47bb415 --- /dev/null +++ b/pkgs/applications/science/logic/cedille/default.nix @@ -0,0 +1,37 @@ +{ stdenv, lib, fetchFromGitHub, alex, happy, Agda, agdaIowaStdlib, + buildPlatform, buildPackages, ghcWithPackages }: +stdenv.mkDerivation rec { + version = "1.0.0"; + name = "cedille-${version}"; + src = fetchFromGitHub { + owner = "cedille"; + repo = "cedille"; + rev = "v${version}"; + sha256 = "08c2vgg8i6l3ws7hd5gsj89mki36lxm7x7s8hi1qa5gllq04a832"; + }; + buildInputs = [ alex happy 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 + cp -r ${agdaIowaStdlib.src} ial + chmod -R 755 ial + ''; + + installPhase = '' + mkdir -p $out/bin + mv cedille $out/bin/cedille + ''; + + meta = { + description = "An interactive theorem-prover and dependently typed programming language, based on extrinsic (aka Curry-style) type theory."; + homepage = https://cedille.github.io/; + license = stdenv.lib.licenses.mit; + maintainers = [ stdenv.lib.maintainers.mpickering ]; + platforms = stdenv.lib.platforms.unix; + }; +} |