summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/dypgen
diff options
context:
space:
mode:
authorChristophe Raffalli <raffalli@univ-savoie.fr>2013-06-04 20:49:10 +0200
committerChristophe Raffalli <raffalli@univ-savoie.fr>2013-06-07 21:40:38 +0200
commit270d929089d1299d4022f12f05f2710fcb69d10d (patch)
treef3ad0811ea1ca0fd9b30db886e2705604f9733c5 /pkgs/development/ocaml-modules/dypgen
parent43faad80633a17c269a78691d531cebeabe6c44c (diff)
downloadnixlib-270d929089d1299d4022f12f05f2710fcb69d10d.tar
nixlib-270d929089d1299d4022f12f05f2710fcb69d10d.tar.gz
nixlib-270d929089d1299d4022f12f05f2710fcb69d10d.tar.bz2
nixlib-270d929089d1299d4022f12f05f2710fcb69d10d.tar.lz
nixlib-270d929089d1299d4022f12f05f2710fcb69d10d.tar.xz
nixlib-270d929089d1299d4022f12f05f2710fcb69d10d.tar.zst
nixlib-270d929089d1299d4022f12f05f2710fcb69d10d.zip
New ocaml packages:
- ocaml-cairo
- camlimages
- dypgen
- patoline
Diffstat (limited to 'pkgs/development/ocaml-modules/dypgen')
-rw-r--r--pkgs/development/ocaml-modules/dypgen/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/dypgen/default.nix b/pkgs/development/ocaml-modules/dypgen/default.nix
new file mode 100644
index 000000000000..73f543f5b626
--- /dev/null
+++ b/pkgs/development/ocaml-modules/dypgen/default.nix
@@ -0,0 +1,33 @@
+{stdenv, fetchurl, ocaml, findlib}:
+
+let
+  ocaml_version = (builtins.parseDrvName ocaml.name).version;
+  pname = "dypgen";
+  version = "20120619-1";
+in
+
+stdenv.mkDerivation {
+  name = "${pname}-${version}";
+
+  src = fetchurl {
+    url = "http://dypgen.free.fr/dypgen-20120619-1.tar.bz2";
+    sha256 = "ecb53d6e469e9ec4d57ee6323ff498d45b78883ae13618492488e7c5151fdd97";
+  };
+
+  buildInputs = [ocaml findlib];
+
+  createFindlibDestdir = true;
+
+  buildPhase = ''
+    make
+  '';
+
+  makeFlags = "BINDIR=$(out)/bin  MANDIR=$(out)/usr/share/man/man1 DYPGENLIBDIR=$(out)/lib/ocaml/${ocaml_version}/site-lib";
+
+  meta = {
+    homepage = http://dypgen.free.fr;
+    description = "Dypgen GLR self extensible parser generator";
+    license = "CeCILL-B_V1";
+#    maintainers = [ stdenv.lib.maintainers.roconnor ];
+  };
+}