mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
Merge pull request #6493 from bcdarwin/teyjus
new package: teyjus 2.0-b2
This commit is contained in:
commit
3440039769
@ -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>";
|
||||
|
28
pkgs/development/compilers/teyjus/default.nix
Normal file
28
pkgs/development/compilers/teyjus/default.nix
Normal 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;
|
||||
};
|
||||
}
|
23
pkgs/development/compilers/teyjus/fix-lex-to-flex.patch
Normal file
23
pkgs/development/compilers/teyjus/fix-lex-to-flex.patch
Normal 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
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user