teyjus: 2.0-b2

This commit is contained in:
Ben Darwin
2015-02-21 02:41:37 -05:00
parent 045013be89
commit 63d61cee7f
4 changed files with 56 additions and 0 deletions

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