aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/ocaml-modules/dolmen
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2017-01-28 17:37:44 +0000
committerVincent Laporte <Vincent.Laporte@gmail.com>2017-01-28 17:40:48 +0000
commit23894b77a7cd09975d8eca76d6b3ecadeac3aa6c (patch)
tree64b1b966b367c8b6fce3ac3ed40c104056beade1 /pkgs/development/ocaml-modules/dolmen
parent61e4313bf1a45ddcc386cc308f7b7fa71665058f (diff)
ocamlPackages.dolmen: init at 0.2
dolmen is an OCaml library providing clean and flexible parsers for input languages Homepage: https://github.com/Gbury/dolmen
Diffstat (limited to 'pkgs/development/ocaml-modules/dolmen')
-rw-r--r--pkgs/development/ocaml-modules/dolmen/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/dolmen/default.nix b/pkgs/development/ocaml-modules/dolmen/default.nix
new file mode 100644
index 000000000000..26876cad8c83
--- /dev/null
+++ b/pkgs/development/ocaml-modules/dolmen/default.nix
@@ -0,0 +1,27 @@
+{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, menhir }:
+
+stdenv.mkDerivation rec {
+ name = "ocaml${ocaml.version}-dolmen-${version}";
+ version = "0.2";
+ src = fetchFromGitHub {
+ owner = "Gbury";
+ repo = "dolmen";
+ rev = "v${version}";
+ sha256 = "1b9mf8p6mic0n76acx8x82hhgm2n40sdv0jri95im65l52223saf";
+ };
+
+ buildInputs = [ ocaml findlib ocamlbuild ];
+ propagatedBuildInputs = [ menhir ];
+
+ makeFlags = "-C src";
+
+ createFindlibDestdir = true;
+
+ meta = {
+ description = "An OCaml library providing clean and flexible parsers for input languages";
+ license = stdenv.lib.licenses.bsd2;
+ maintainers = [ stdenv.lib.maintainers.vbgl ];
+ inherit (src.meta) homepage;
+ inherit (ocaml.meta) platforms;
+ };
+}