summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/asn1-combinators
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2015-02-26 08:33:43 +0100
committerVincent Laporte <Vincent.Laporte@gmail.com>2015-02-26 08:35:05 +0100
commitde3924a1a852192bef634023d76772a7d94e623f (patch)
tree9adefa8c32998b8da2cbe545e2e89b7411b710e7 /pkgs/development/ocaml-modules/asn1-combinators
parent9ce0c1cb71138d0bb9f8ea314e65f084bb5095a1 (diff)
downloadnixpkgs-de3924a1a852192bef634023d76772a7d94e623f.tar
nixpkgs-de3924a1a852192bef634023d76772a7d94e623f.tar.gz
nixpkgs-de3924a1a852192bef634023d76772a7d94e623f.tar.bz2
nixpkgs-de3924a1a852192bef634023d76772a7d94e623f.tar.lz
nixpkgs-de3924a1a852192bef634023d76772a7d94e623f.tar.xz
nixpkgs-de3924a1a852192bef634023d76772a7d94e623f.tar.zst
nixpkgs-de3924a1a852192bef634023d76772a7d94e623f.zip
Adds ocaml-asn1-combinators
An OCaml library of combinators for expressing ASN.1 grammars.

Homepage: https://github.com/mirleft/ocaml-asn1-combinators
Diffstat (limited to 'pkgs/development/ocaml-modules/asn1-combinators')
-rw-r--r--pkgs/development/ocaml-modules/asn1-combinators/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/asn1-combinators/default.nix b/pkgs/development/ocaml-modules/asn1-combinators/default.nix
new file mode 100644
index 00000000000..bb4b5f7b312
--- /dev/null
+++ b/pkgs/development/ocaml-modules/asn1-combinators/default.nix
@@ -0,0 +1,27 @@
+{ stdenv, fetchzip, ocaml, findlib, cstruct, zarith }:
+
+assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.01";
+
+let version = "0.1.1"; in
+
+stdenv.mkDerivation {
+  name = "ocaml-asn1-combinators-${version}";
+
+  src = fetchzip {
+    url = "https://github.com/mirleft/ocaml-asn1-combinators/archive/${version}.tar.gz";
+    sha256 = "1wl5g2cqd4dk33w0ski6z425cs4sgj980fw0xkwgz1w1xzywh4i2";
+  };
+
+  buildInputs = [ ocaml findlib ];
+  propagatedBuildInputs = [ cstruct zarith ];
+
+  createFindlibDestdir = true;
+
+  meta = {
+    homepage = https://github.com/mirleft/ocaml-asn1-combinators;
+    description = "Combinators for expressing ASN.1 grammars in OCaml";
+    platforms = ocaml.meta.platforms;
+    license = stdenv.lib.licenses.bsd2;
+    maintainers = with stdenv.lib.maintainers; [ vbgl ];
+  };
+}