git.iko.soy/typeable/nixpkgs
on master help sign in
cedille: init at 1.0.0
commit43ae33728bace6deb31042ab61efb196c1b8e2b0 authorMatthew Pickering <matthewtpickering@gmail.com> dateFri 12 Oct 2018, 21:22 (8 years ago) parent561fcf4
2 files changed+41
pkgs/applications/science/logic/cedille/default.nix+37 pkgs/top-level/all-packages.nix+4
pkgs/applications/science/logic/cedille/default.nixnew file+37
@@ -0,0 +1,37 @@
1+{ stdenv, lib, fetchFromGitHub, alex, happy, Agda, agdaIowaStdlib,
2+ buildPlatform, buildPackages, ghcWithPackages }:
3+stdenv.mkDerivation rec {
4+ version = "1.0.0";
5+ name = "cedille-${version}";
6+ src = fetchFromGitHub {
7+ owner = "cedille";
8+ repo = "cedille";
9+ rev = "v${version}";
10+ sha256 = "08c2vgg8i6l3ws7hd5gsj89mki36lxm7x7s8hi1qa5gllq04a832";
11+ };
12+ buildInputs = [ alex happy Agda (ghcWithPackages (ps: [ps.ieee])) ];
13+
14+ LANG = "en_US.UTF-8";
15+ LOCALE_ARCHIVE =
16+ lib.optionalString (buildPlatform.libc == "glibc")
17+ "${buildPackages.glibcLocales}/lib/locale/locale-archive";
18+
19+ postPatch = ''
20+ patchShebangs create-libraries.sh
21+ cp -r ${agdaIowaStdlib.src} ial
22+ chmod -R 755 ial
23+ '';
24+
25+ installPhase = ''
26+ mkdir -p $out/bin
27+ mv cedille $out/bin/cedille
28+ '';
29+
30+ meta = {
31+ description = "An interactive theorem-prover and dependently typed programming language, based on extrinsic (aka Curry-style) type theory.";
32+ homepage = https://cedille.github.io/;
33+ license = stdenv.lib.licenses.mit;
34+ maintainers = [ stdenv.lib.maintainers.mpickering ];
35+ platforms = stdenv.lib.platforms.unix;
36+ };
37+}
pkgs/top-level/all-packages.nix+4
@@ -1091,6 +1091,10 @@ with pkgs;
10911091
10921092 cddl = callPackage ../development/tools/cddl { };
10931093
1094+ cedille = callPackage ../applications/science/logic/cedille
1095+ { inherit (haskellPackages) alex happy Agda ghcWithPackages;
1096+ };
1097+
10941098 cfdyndns = callPackage ../applications/networking/dyndns/cfdyndns { };
10951099
10961100 ckbcomp = callPackage ../tools/X11/ckbcomp { };