Merge pull request #48288 from mpickering/cedille

cedille: init at v1.0.0
This commit is contained in:
Silvan Mosberger 2018-10-14 21:30:51 +02:00 committed by GitHub
commit 2551412f5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 80 additions and 8 deletions

View File

@ -0,0 +1,30 @@
{ stdenv, cedille, emacs }:
stdenv.mkDerivation rec {
name = "cedille-mode-${version}";
version = cedille.version;
src = cedille.src;
buildInputs = [ emacs ];
buildPhase = ":";
installPhase = ''
install -d $out/share/emacs/site-lisp
install se-mode/*.el se-mode/*.elc $out/share/emacs/site-lisp
install cedille-mode/*.el cedille-mode/*.elc $out/share/emacs/site-lisp
install *.el *.elc $out/share/emacs/site-lisp
substituteInPlace $out/share/emacs/site-lisp/cedille-mode.el \
--replace /usr/bin/cedille ${cedille}/bin/cedille \
'';
meta = {
description = "Emacs major mode for Cedille";
homepage = cedille.meta.homepage;
license = cedille.meta.license ;
platforms = cedille.meta.platforms;
maintainers = cedille.meta.maintainers;
};
}

View File

@ -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;
};
}

View File

@ -1,13 +1,14 @@
{ stdenv, agda, fetchsvn }:
{ stdenv, agda, fetchFromGitHub }:
agda.mkDerivation (self: rec {
version = "18734";
version = "1.4.0";
name = "agda-iowa-stdlib-${version}";
src = fetchsvn {
url = "https://svn.divms.uiowa.edu/repos/clc/projects/agda/lib";
rev = version;
sha256 = "0aqib88m5n6aqb5lmns9nl62x40yqhg6zpj0zjxibbn4s4qjw9ky";
src = fetchFromGitHub {
owner = "cedille";
repo = "ial";
rev = "v${version}";
sha256 = "1gwxpybxwdj5ipbb3gapm7r5hfl3g6sj9kp13954pdmx8d5b0gma";
};
sourceDirectories = [ "./." ];
@ -22,7 +23,5 @@ agda.mkDerivation (self: rec {
license = stdenv.lib.licenses.free;
platforms = stdenv.lib.platforms.unix;
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
broken = true;
};
})

View File

@ -1091,6 +1091,10 @@ with pkgs;
cddl = callPackage ../development/tools/cddl { };
cedille = callPackage ../applications/science/logic/cedille
{ inherit (haskellPackages) alex happy Agda ghcWithPackages;
};
cfdyndns = callPackage ../applications/networking/dyndns/cfdyndns { };
ckbcomp = callPackage ../tools/X11/ckbcomp { };
@ -16233,6 +16237,8 @@ with pkgs;
calfw = callPackage ../applications/editors/emacs-modes/calfw { };
cedille = callPackage ../applications/editors/emacs-modes/cedille { cedille = pkgs.cedille; };
coffee = callPackage ../applications/editors/emacs-modes/coffee { };
colorTheme = callPackage ../applications/editors/emacs-modes/color-theme { };