Merge pull request #6493 from bcdarwin/teyjus

new package: teyjus 2.0-b2
This commit is contained in:
cillianderoiste 2015-02-22 13:58:11 +01:00
commit 3440039769
4 changed files with 56 additions and 0 deletions

View File

@ -27,6 +27,7 @@
aycanirican = "Aycan iRiCAN <iricanaycan@gmail.com>";
balajisivaraman = "Balaji Sivaraman<sivaraman.balaji@gmail.com>";
bbenoist = "Baptist BENOIST <return_0@live.com>";
bcdarwin = "Ben Darwin <bcdarwin@gmail.com>";
bdimcheff = "Brandon Dimcheff <brandon@dimcheff.com>";
bennofs = "Benno Fünfstück <benno.fuenfstueck@gmail.com>";
benley = "Benjamin Staffin <benley@gmail.com>";

View File

@ -0,0 +1,28 @@
{ stdenv, fetchurl, omake, ocaml, flex, bison }:
stdenv.mkDerivation {
name = "teyjus-2.0b2";
src = fetchurl {
url = "https://teyjus.googlecode.com/files/teyjus-source-2.0-b2.tar.gz";
sha256 = "f589fb460d7095a6e674b7a6413772c41b98654c38602c3e8c477a976da99052";
};
patches = [ ./fix-lex-to-flex.patch ];
buildInputs = [ omake ocaml flex bison ];
buildPhase = "omake all";
checkPhase = "omake check";
installPhase = "mkdir -p $out/bin && cp tj* $out/bin";
meta = with stdenv.lib; {
description = "An efficient implementation of the Lambda Prolog language";
homepage = https://code.google.com/p/teyjus/;
license = stdenv.lib.licenses.gpl3;
maintainers = [ maintainers.bcdarwin ];
platforms = platforms.linux;
};
}

View File

@ -0,0 +1,23 @@
diff --git a/source/OMakefile b/source/OMakefile
index 6b19d84..095b8b6 100644
--- a/source/OMakefile
+++ b/source/OMakefile
@@ -164,12 +164,17 @@ LNK_MAIN = $(FNT)/linkerfront
DEP_MAIN = $(FNT)/dependfront
############################################################
+# Nixpkgs specific changes
+#
+
+LEX = flex
+
+############################################################
# Platform specific changes
#
if $(mem $(OSTYPE), Cygwin Win32)
YACC = bison -by
- LEX = flex
CFLAGS += -mno-cygwin
INC_C[] += $(INC)/byteswap $(INC)/search
export

View File

@ -4173,6 +4173,10 @@ let
tbb = callPackage ../development/libraries/tbb { };
teyjus = callPackage ../development/compilers/teyjus {
omake = omake_rc1;
};
tinycc = callPackage ../development/compilers/tinycc { };
urweb = callPackage ../development/compilers/urweb { };