Matita and its dependencies.
svn path=/nixpkgs/trunk/; revision=25328
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
version="@VERSION@"
|
||||
description="reading and writing ZIP, JAR and GZIP files"
|
||||
requires="unix"
|
||||
archive(byte)="camlzip.cma"
|
||||
archive(native)="camlzip.cmxa"
|
||||
archive(byte)="zip.cma"
|
||||
archive(native)="zip.cmxa"
|
||||
linkopts = ""
|
||||
|
||||
51
pkgs/development/ocaml-modules/expat/default.nix
Normal file
51
pkgs/development/ocaml-modules/expat/default.nix
Normal file
@@ -0,0 +1,51 @@
|
||||
{stdenv, fetchurl, ocaml, findlib, ounit, expat}:
|
||||
|
||||
let
|
||||
ocaml_version = (builtins.parseDrvName ocaml.name).version;
|
||||
version = "0.9.1";
|
||||
pname = "ocaml-expat";
|
||||
testcase = fetchurl {
|
||||
url = "http://www.w3.org/TR/1998/REC-xml-19980210.xml";
|
||||
sha256 = "00a3gsfvlkdhmcbziqhvpvy1zmcgbcihfqwcvl6ay03zf7gvw0k1";
|
||||
};
|
||||
|
||||
in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.xs4all.nl/~mmzeeman/ocaml/${pname}-${version}.tar.gz";
|
||||
sha256 = "16n2j3y0jc9xgqyshw9plrwqnjiz30vnpbhahmgxlidbycw8rgjz";
|
||||
};
|
||||
|
||||
buildInputs = [ocaml findlib ounit expat];
|
||||
|
||||
createFindlibDestdir = true;
|
||||
|
||||
patches = [ ./unittest.patch ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace "unittest.ml" \
|
||||
--replace "/home/maas/xml-samples/REC-xml-19980210.xml.txt" "${testcase}"
|
||||
substituteInPlace Makefile --replace "EXPAT_LIBDIR=/usr/local/lib" "EXPAT_LIBDIR=${expat}/lib" \
|
||||
substituteInPlace Makefile --replace "EXPAT_INCDIR=/usr/local/include" "EXPAT_INCDIR=${expat}/include" \
|
||||
'';
|
||||
|
||||
configurePhase = "true"; # Skip configure
|
||||
|
||||
buildPhase = ''
|
||||
make all allopt
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
|
||||
checkTarget = "testall";
|
||||
|
||||
meta = {
|
||||
homepage = http://www.xs4all.nl/~mmzeeman/ocaml/;
|
||||
description = "An ocaml wrapper for the Expat XML parsing library";
|
||||
license = "MIT/X11";
|
||||
maintainers = [ stdenv.lib.maintainers.roconnor ];
|
||||
};
|
||||
}
|
||||
15
pkgs/development/ocaml-modules/expat/unittest.patch
Normal file
15
pkgs/development/ocaml-modules/expat/unittest.patch
Normal file
@@ -0,0 +1,15 @@
|
||||
--- old/Makefile 2005-03-13 09:00:29.000000000 -0500
|
||||
+++ new/Makefile 2010-08-26 14:20:34.515785557 -0400
|
||||
@@ -67,10 +67,10 @@
|
||||
testall: test testopt
|
||||
.PHONY: test
|
||||
test: unittest
|
||||
- ./unittest
|
||||
+ LD_LIBRARY_PATH=. ./unittest
|
||||
.PHONY: testopt
|
||||
testopt: unittest.opt
|
||||
- ./unittest.opt
|
||||
+ LD_LIBRARY_PATH=. ./unittest.opt
|
||||
unittest: all unittest.ml
|
||||
$(OCAMLFIND) ocamlc -o unittest -package oUnit -ccopt -L. -linkpkg \
|
||||
$(ARCHIVE) unittest.ml
|
||||
36
pkgs/development/ocaml-modules/gmetadom/default.nix
Normal file
36
pkgs/development/ocaml-modules/gmetadom/default.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{stdenv, fetchurl, ocaml, findlib, gdome2, libxslt, pkgconfig}:
|
||||
|
||||
let
|
||||
ocaml_version = (builtins.parseDrvName ocaml.name).version;
|
||||
version = "0.2.6";
|
||||
pname = "gmetadom";
|
||||
|
||||
in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/project/${pname}/${pname}/${version}/${pname}-${version}.tar.gz";
|
||||
sha256 = "0skmlv0pnqvg99wzzzi1h4zhwzd82xg7xpkj1kwpfy7bzinjh7ig";
|
||||
};
|
||||
|
||||
patches = [ ./gcc-4.3.dpatch ];
|
||||
|
||||
dontDisableStatic = true;
|
||||
|
||||
preConfigure=''
|
||||
configureFlags="--with-ocaml-lib-prefix=$out/lib/ocaml/${ocaml_version}/site-lib"
|
||||
'';
|
||||
|
||||
|
||||
buildInputs = [ocaml findlib pkgconfig gdome2 libxslt];
|
||||
propagatedBuildInputs = [gdome2];
|
||||
|
||||
meta = {
|
||||
homepage = http://gmetadom.sourceforge.net/;
|
||||
description = "GMetaDOM is a collection of librares, each library providing a DOM implementation";
|
||||
license = "LGPLv2.1+";
|
||||
maintainers = [ stdenv.lib.maintainers.roconnor ];
|
||||
};
|
||||
}
|
||||
18
pkgs/development/ocaml-modules/gmetadom/gcc-4.3.dpatch
Normal file
18
pkgs/development/ocaml-modules/gmetadom/gcc-4.3.dpatch
Normal file
@@ -0,0 +1,18 @@
|
||||
#! /bin/sh /usr/share/dpatch/dpatch-run
|
||||
## gcc-4.3.dpatch by Stefano Zacchiroli <zack@debian.org>
|
||||
##
|
||||
## All lines beginning with `## DP:' are a description of the patch.
|
||||
## DP: ensure sources build with gcc-4.3
|
||||
|
||||
@DPATCH@
|
||||
diff -urNad trunk~/src/shared/Traits.hh.in trunk/src/shared/Traits.hh.in
|
||||
--- trunk~/src/shared/Traits.hh.in 2003-01-14 12:41:55.000000000 +0100
|
||||
+++ trunk/src/shared/Traits.hh.in 2008-05-01 15:45:39.000000000 +0200
|
||||
@@ -26,6 +26,7 @@
|
||||
*/
|
||||
|
||||
#include <string>
|
||||
+#include <cstring>
|
||||
|
||||
#include "@DOM_NAMESPACE@Char.hh"
|
||||
|
||||
39
pkgs/development/ocaml-modules/http/default.nix
Normal file
39
pkgs/development/ocaml-modules/http/default.nix
Normal file
@@ -0,0 +1,39 @@
|
||||
{stdenv, fetchurl, ocaml_pcre, ocamlnet, ocaml, findlib}:
|
||||
|
||||
let
|
||||
ocaml_version = (builtins.parseDrvName ocaml.name).version;
|
||||
pname = "ocaml-http";
|
||||
version = "0.1.3";
|
||||
in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://upsilon.cc/~zack/hacking/software/${pname}/${pname}-${version}.tar.gz";
|
||||
sha256 = "070xw033r4pk6f4l0wcknm75y9qm4mp622a4cgzmcfhm58v6kssn";
|
||||
};
|
||||
|
||||
buildInputs = [ocaml_pcre ocamlnet ocaml findlib];
|
||||
|
||||
createFindlibDestdir = true;
|
||||
|
||||
prePatch = ''
|
||||
BASH=$(type -tp bash)
|
||||
echo $BASH
|
||||
substituteInPlace Makefile --replace "SHELL=/bin/bash" "SHELL=$BASH"
|
||||
'';
|
||||
|
||||
configurePhase = "true"; # Skip configure phase
|
||||
|
||||
buildPhase = ''
|
||||
make all opt
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "http://upsilon.cc/~zack/hacking/software/ocaml-http/";
|
||||
description = "do it yourself (OCaml) HTTP daemon";
|
||||
license = "LGPLv2";
|
||||
maintainers = [ stdenv.lib.maintainers.roconnor ];
|
||||
};
|
||||
}
|
||||
64
pkgs/development/ocaml-modules/lablgtk/META.patch
Normal file
64
pkgs/development/ocaml-modules/lablgtk/META.patch
Normal file
@@ -0,0 +1,64 @@
|
||||
diff -ruN zzz/lablgtk-2.14.1/META lablgtk-2.14.1/META
|
||||
--- zzz/lablgtk-2.14.1/META 2009-02-12 21:39:14.000000000 -0500
|
||||
+++ lablgtk-2.14.1/META 2010-09-07 19:48:06.454452726 -0400
|
||||
@@ -1,8 +1,52 @@
|
||||
-requires=""
|
||||
-version="2.12.0"
|
||||
-archive(byte)="lablgtk.cma"
|
||||
-archive(byte,init)="lablgtk.cma gtkInit.cmo"
|
||||
-archive(native)="lablgtk.cmxa"
|
||||
-archive(native,init)="lablgtk.cmxa gtkInit.cmx"
|
||||
-linkopts=""
|
||||
-directory="+lablgtk2"
|
||||
+version="2.14.1"
|
||||
+requires(mt) = "threads"
|
||||
+requires(mt,mt_vm) = "threads.vm"
|
||||
+requires(mt,mt_posix) = "threads.posix"
|
||||
+archive(byte) = "lablgtk.cma"
|
||||
+archive(native) = "lablgtk.cmxa"
|
||||
+archive(byte,mt) += "gtkThread.cmo"
|
||||
+archive(native,mt) += "gtkThread.cmx"
|
||||
+
|
||||
+package "init" (
|
||||
+ requires = "lablgtk2"
|
||||
+ archive(byte) = "gtkInit.cmo"
|
||||
+ archive(native) = "gtkInit.cmx"
|
||||
+)
|
||||
+
|
||||
+package "glade" (
|
||||
+ requires = "lablgtk2"
|
||||
+ archive(byte) = "lablglade.cma"
|
||||
+ archive(native) = "lablglade.cmxa"
|
||||
+)
|
||||
+
|
||||
+package "gtkspell" (
|
||||
+ requires = "lablgtk2"
|
||||
+ archive(byte) = "lablgtkspell.cma"
|
||||
+ archive(native) = "lablgtkspell.cmxa"
|
||||
+)
|
||||
+
|
||||
+package "gnomecanvas" (
|
||||
+ archive(byte) = "lablgnomecanvas.cma"
|
||||
+ archive(native) = "lablgnomecanvas.cmxa"
|
||||
+)
|
||||
+
|
||||
+package "gnomeui" (
|
||||
+ archive(byte) = "lablgnomeui.cma"
|
||||
+ archive(native) = "lablgnomeui.cmxa"
|
||||
+)
|
||||
+
|
||||
+package "panel" (
|
||||
+ archive(byte) = "lablpanel.cma"
|
||||
+ archive(native) = "lablpanel.cmxa"
|
||||
+)
|
||||
+
|
||||
+package "rsvg" (
|
||||
+ archive(byte) = "lablrsvg.cma"
|
||||
+ archive(native) = "lablrsvg.cmxa"
|
||||
+)
|
||||
+
|
||||
+package "gtksourceview" (
|
||||
+ requires = "lablgtk2"
|
||||
+ archive(byte) = "lablgtksourceview2.cma"
|
||||
+ archive(native) = "lablgtksourceview2.cmxa"
|
||||
+)
|
||||
37
pkgs/development/ocaml-modules/lablgtk/default.nix
Normal file
37
pkgs/development/ocaml-modules/lablgtk/default.nix
Normal file
@@ -0,0 +1,37 @@
|
||||
{stdenv, fetchurl, ocaml, findlib, pkgconfig, gtk, libgnomecanvas, libglade, gtksourceview}:
|
||||
|
||||
let
|
||||
ocaml_version = (builtins.parseDrvName ocaml.name).version;
|
||||
pname = "lablgtk";
|
||||
version = "2.14.2";
|
||||
in
|
||||
|
||||
stdenv.mkDerivation (rec {
|
||||
name = "${pname}-${version}";
|
||||
src = fetchurl {
|
||||
url = "http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/${name}.tar.gz";
|
||||
sha256 = "1fnh0amm7lwgyjdhmlqgsp62gwlar1140425yc1j6inwmgnsp0a9";
|
||||
};
|
||||
|
||||
buildInputs = [ocaml findlib pkgconfig gtk libgnomecanvas libglade gtksourceview];
|
||||
|
||||
patches = [ ./META.patch ];
|
||||
|
||||
configureFlags = "--with-libdir=$(out)/lib/ocaml/${ocaml_version}/site-lib";
|
||||
buildFlags = "world";
|
||||
|
||||
postInstall = ''
|
||||
ocamlfind install lablgtk2 META
|
||||
'';
|
||||
|
||||
meta = {
|
||||
platforms = ocaml.meta.platforms;
|
||||
maintainers = [
|
||||
stdenv.lib.maintainers.z77z
|
||||
stdenv.lib.maintainers.roconnor
|
||||
];
|
||||
homepage = http://wwwfun.kurims.kyoto-u.ac.jp/soft/lsl/lablgtk.html;
|
||||
description = "LablGTK is is an Objective Caml interface to gtk+";
|
||||
license = "LGPLv2.1+";
|
||||
};
|
||||
})
|
||||
@@ -0,0 +1,14 @@
|
||||
--- configure 2010-09-02 10:58:16.128236964 -0400
|
||||
+++ configure.old 2010-09-02 10:57:42.368111615 -0400
|
||||
@@ -1637,9 +1637,9 @@
|
||||
echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_caml_mlvalues_h" >&5
|
||||
echo "${ECHO_T}$ac_cv_file__usr_include_caml_mlvalues_h" >&6
|
||||
if test $ac_cv_file__usr_include_caml_mlvalues_h = yes; then
|
||||
- OCAML_INCLUDE_DIR=/usr/include
|
||||
+ OCAML_INCLUDE_DIR=/usr/include/caml
|
||||
else
|
||||
- OCAML_INCLUDE_DIR=$OCAML_LIB_DIR
|
||||
+ OCAML_INCLUDE_DIR=$OCAML_LIB_DIR/caml
|
||||
|
||||
fi
|
||||
|
||||
40
pkgs/development/ocaml-modules/lablgtkmathview/default.nix
Normal file
40
pkgs/development/ocaml-modules/lablgtkmathview/default.nix
Normal file
@@ -0,0 +1,40 @@
|
||||
{stdenv, fetchurl, pkgconfig, ocaml, findlib, gmetadom, gtkmathview, lablgtk }:
|
||||
|
||||
let
|
||||
ocaml_version = (builtins.parseDrvName ocaml.name).version;
|
||||
version = "0.7.2";
|
||||
pname = "lablgtkmathview";
|
||||
|
||||
in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://helm.cs.unibo.it/mml-widget/sources/${pname}-${version}.tar.gz";
|
||||
sha256 = "0rgrpgwrgphw106l1xawxir002b7rmzc23rcxhv8ib6rymp1divx";
|
||||
};
|
||||
|
||||
buildInputs = [pkgconfig ocaml findlib gmetadom gtkmathview lablgtk];
|
||||
|
||||
createFindlibDestdir = true;
|
||||
|
||||
propagatedBuildInputs = [gtkmathview];
|
||||
|
||||
prePatch = ''
|
||||
substituteInPlace Makefile.in --replace "PROPCC = @OCAML_LIB_DIR@" "PROPCC = ${lablgtk}/lib/ocaml/${ocaml_version}/site-lib"
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
ensureDir .test
|
||||
make
|
||||
make opt
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = http://helm.cs.unibo.it/mml-widget/;
|
||||
description = "OCaml bindings for gtkmathview";
|
||||
license = "LGPLv2+";
|
||||
maintainers = [ stdenv.lib.maintainers.roconnor ];
|
||||
};
|
||||
}
|
||||
42
pkgs/development/ocaml-modules/mysql/default.nix
Normal file
42
pkgs/development/ocaml-modules/mysql/default.nix
Normal file
@@ -0,0 +1,42 @@
|
||||
{stdenv, fetchurl, ocaml, findlib, mysql}:
|
||||
|
||||
# TODO: la versione stabile da' un errore di compilazione dovuto a
|
||||
# qualche cambiamento negli header .h
|
||||
# TODO: compilazione di moduli dipendenti da zip, ssl, tcl, gtk, gtk2
|
||||
|
||||
let
|
||||
ocaml_version = (builtins.parseDrvName ocaml.name).version;
|
||||
pname = "ocaml-mysql";
|
||||
version = "1.0.4";
|
||||
in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://raevnos.pennmush.org/code/${pname}/${pname}-${version}.tar.gz";
|
||||
sha256 = "17i5almar8qrhc9drq0cvlprxf9wi9szj5kh4gnz11l9al8i3lar";
|
||||
};
|
||||
|
||||
buildInputs = [ocaml findlib mysql];
|
||||
|
||||
createFindlibDestdir = true;
|
||||
|
||||
propagatedbuildInputs = [mysql];
|
||||
|
||||
preConfigure = ''
|
||||
export LDFLAGS="-L${mysql}/lib/mysql"
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
make
|
||||
make opt
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = http://raevnos.pennmush.org/code/ocaml-mysql/;
|
||||
description = "Bindings for interacting with MySQL databases from ocaml";
|
||||
license = "LGPLv2.1+";
|
||||
maintainers = [ stdenv.lib.maintainers.roconnor ];
|
||||
};
|
||||
}
|
||||
@@ -15,6 +15,8 @@ stdenv.mkDerivation {
|
||||
|
||||
buildInputs = [ncurses ocaml findlib ocaml_pcre camlzip openssl ocaml_ssl];
|
||||
|
||||
createFindlibDestdir = true;
|
||||
|
||||
dontAddPrefix = true;
|
||||
|
||||
preConfigure = ''
|
||||
|
||||
72
pkgs/development/ocaml-modules/ulex/0.8/camlp5.patch
Normal file
72
pkgs/development/ocaml-modules/ulex/0.8/camlp5.patch
Normal file
@@ -0,0 +1,72 @@
|
||||
Author: Stefano Zacchiroli <zack@debian.org>
|
||||
Description: build (and install) using camlp5 instead of camlp4
|
||||
--- ulex0.8.orig/META
|
||||
+++ ulex0.8/META
|
||||
@@ -1,5 +1,5 @@
|
||||
version = "0.8"
|
||||
-requires = "camlp4"
|
||||
+requires = "camlp5"
|
||||
description = "Runtime support for ulex"
|
||||
archive(byte) = "ulexing.cma"
|
||||
archive(native) = "ulexing.cmxa"
|
||||
--- ulex0.8.orig/Makefile
|
||||
+++ ulex0.8/Makefile
|
||||
@@ -20,7 +20,7 @@
|
||||
ocamlopt -a -o ulexing.cmxa $(ULEXING)
|
||||
|
||||
pa_ulex.cma: $(ULEX)
|
||||
- ocamlc -a -o pa_ulex.cma -pp 'camlp4o pa_extend.cmo q_MLast.cmo' -I +camlp4 $(ULEX)
|
||||
+ ocamlc -a -o pa_ulex.cma -pp 'camlp5o pa_extend.cmo q_MLast.cmo' -I `camlp5 -where` $(ULEX)
|
||||
|
||||
pa_ulex.ml: pa_ulex.ml.src
|
||||
ocaml mk_pa_ulex.ml
|
||||
@@ -29,14 +29,14 @@
|
||||
rm -f *.cm* *~ test custom_ulexing *.o *.a *.html *.css pa_ulex.ml
|
||||
|
||||
view_test: pa_ulex.cma
|
||||
- camlp4o ./pa_ulex.cma pr_o.cmo -sep "\n" test.ml
|
||||
+ camlp5o ./pa_ulex.cma pr_o.cmo -sep "\n" test.ml
|
||||
|
||||
run_test: ulexing.cma pa_ulex.cma
|
||||
- ocamlc -o test -pp 'camlp4o ./pa_ulex.cma' ulexing.cma test.ml
|
||||
+ ocamlc -o test -pp 'camlp5o ./pa_ulex.cma' ulexing.cma test.ml
|
||||
./test
|
||||
|
||||
custom_ulexing: ulexing.cma pa_ulex.cma
|
||||
- ocamlc -o custom_ulexing -pp 'camlp4o ./pa_ulex.cma' ulexing.cma custom_ulexing.ml
|
||||
+ ocamlc -o custom_ulexing -pp 'camlp5o ./pa_ulex.cma' ulexing.cma custom_ulexing.ml
|
||||
|
||||
|
||||
doc:
|
||||
--- ulex0.8.orig/README
|
||||
+++ ulex0.8/README
|
||||
@@ -142,7 +142,7 @@
|
||||
|
||||
Compilation of OCaml files with lexer specifications:
|
||||
|
||||
- ocamlfind ocamlc -c -package ulex -syntax camlp4o my_file.ml
|
||||
+ ocamlfind ocamlc -c -package ulex -syntax camlp5o my_file.ml
|
||||
|
||||
When linking, you must also include the ulex package:
|
||||
ocamlfind ocamlc -o my_prog -linkpkg -package ulex my_file.cmo
|
||||
--- ulex0.8.orig/mk_pa_ulex.ml
|
||||
+++ ulex0.8/mk_pa_ulex.ml
|
||||
@@ -1,10 +1,4 @@
|
||||
let s = float_of_string (String.sub (Sys.ocaml_version) 0 4) in
|
||||
-if (s < 3.09) then (
|
||||
print_endline "Old camlp4 (loc)";
|
||||
Sys.command "sed s/_loc/loc/ < pa_ulex.ml.src > pa_ulex.ml"
|
||||
-)
|
||||
-else (
|
||||
- print_endline "New camlp4 (_loc)";
|
||||
- Sys.command "cp pa_ulex.ml.src pa_ulex.ml"
|
||||
-)
|
||||
|
||||
--- ulex0.8.orig/pa_ulex.ml.src
|
||||
+++ ulex0.8/pa_ulex.ml.src
|
||||
@@ -1,4 +1,4 @@
|
||||
-let _loc = (Lexing.dummy_pos,Lexing.dummy_pos)
|
||||
+let _loc = Stdpp.dummy_loc
|
||||
|
||||
(* Named regexp *)
|
||||
|
||||
32
pkgs/development/ocaml-modules/ulex/0.8/default.nix
Normal file
32
pkgs/development/ocaml-modules/ulex/0.8/default.nix
Normal file
@@ -0,0 +1,32 @@
|
||||
{stdenv, fetchurl, ocaml, findlib, camlp5 }:
|
||||
|
||||
let
|
||||
ocaml_version = (builtins.parseDrvName ocaml.name).version;
|
||||
version = "0.8";
|
||||
pname = "ulex";
|
||||
|
||||
in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.cduce.org/download/old/${pname}-${version}.tar.gz";
|
||||
sha256 = "19faabg8hzz155xlzmjwsl59d7slahb5m1l9zh1fqvvpp81r26cp";
|
||||
};
|
||||
|
||||
buildInputs = [ocaml findlib camlp5];
|
||||
|
||||
createFindlibDestdir = true;
|
||||
|
||||
patches = [ ./meta_version.patch ./camlp5.patch ];
|
||||
|
||||
buildFlags = "all all.opt";
|
||||
|
||||
meta = {
|
||||
homepage = http://www.cduce.org/download.html;
|
||||
description = "ulex is a lexer generator for Unicode and OCaml";
|
||||
license = "MIT";
|
||||
maintainers = [ stdenv.lib.maintainers.roconnor ];
|
||||
};
|
||||
}
|
||||
10
pkgs/development/ocaml-modules/ulex/0.8/meta_version.patch
Normal file
10
pkgs/development/ocaml-modules/ulex/0.8/meta_version.patch
Normal file
@@ -0,0 +1,10 @@
|
||||
Author: Stefano Zacchiroli <zack@debian.org>
|
||||
Description: fix a typo in the findlib package version number specified in META
|
||||
--- ulex0.8.orig/META
|
||||
+++ ulex0.8/META
|
||||
@@ -1,4 +1,4 @@
|
||||
-version = "0.7"
|
||||
+version = "0.8"
|
||||
requires = "camlp4"
|
||||
description = "Runtime support for ulex"
|
||||
archive(byte) = "ulexing.cma"
|
||||
28
pkgs/development/ocaml-modules/ulex/default.nix
Normal file
28
pkgs/development/ocaml-modules/ulex/default.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{stdenv, fetchurl, ocaml, findlib }:
|
||||
|
||||
let
|
||||
ocaml_version = (builtins.parseDrvName ocaml.name).version;
|
||||
version = "1.1";
|
||||
pname = "ulex";
|
||||
|
||||
in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.cduce.org/download/${pname}-${version}.tar.gz";
|
||||
sha256 = "0fjlkwps14adfgxdrbb4yg65fhyimplvjjs1xqj5np197cig67x0";
|
||||
};
|
||||
|
||||
buildInputs = [ocaml findlib];
|
||||
|
||||
buildFlags = "all all.opt";
|
||||
|
||||
meta = {
|
||||
homepage = http://www.cduce.org/download.html;
|
||||
description = "ulex is a lexer generator for Unicode and OCaml";
|
||||
license = "MIT";
|
||||
maintainers = [ stdenv.lib.maintainers.roconnor ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user