summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/erm_xmpp
diff options
context:
space:
mode:
authorts468 <ts468@users.noreply.github.com>2015-09-06 21:15:10 +0200
committerts468 <ts468@users.noreply.github.com>2015-09-06 21:15:10 +0200
commit054be41e04e2f583433c8d69f73f63389aec7f77 (patch)
tree57b99067b9535540280af72c31b134d8ba8e1589 /pkgs/development/ocaml-modules/erm_xmpp
parenta9dab9df6110f6f5c8300c4408c845d8176539bd (diff)
downloadnixpkgs-054be41e04e2f583433c8d69f73f63389aec7f77.tar
nixpkgs-054be41e04e2f583433c8d69f73f63389aec7f77.tar.gz
nixpkgs-054be41e04e2f583433c8d69f73f63389aec7f77.tar.bz2
nixpkgs-054be41e04e2f583433c8d69f73f63389aec7f77.tar.lz
nixpkgs-054be41e04e2f583433c8d69f73f63389aec7f77.tar.xz
nixpkgs-054be41e04e2f583433c8d69f73f63389aec7f77.tar.zst
nixpkgs-054be41e04e2f583433c8d69f73f63389aec7f77.zip
Revert "ocaml-modules: fix naming: "_" -> "-""
Diffstat (limited to 'pkgs/development/ocaml-modules/erm_xmpp')
-rw-r--r--pkgs/development/ocaml-modules/erm_xmpp/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/erm_xmpp/default.nix b/pkgs/development/ocaml-modules/erm_xmpp/default.nix
new file mode 100644
index 00000000000..7508a14738d
--- /dev/null
+++ b/pkgs/development/ocaml-modules/erm_xmpp/default.nix
@@ -0,0 +1,33 @@
+{ stdenv, fetchurl, fetchzip, ocaml, findlib, erm_xml, cryptokit, camlp4 }:
+
+let
+  version = "0.2";
+  disable-tests = fetchurl {
+    url = https://raw.githubusercontent.com/ocaml/opam-repository/master/packages/erm_xmpp/erm_xmpp.0.2/files/disable_tests.patch;
+    sha256 = "09d8630nmx2x8kb8ap1zmsb93zs14cqg7ga1gmdl92jvsjxbhgc1";
+  };
+in
+
+stdenv.mkDerivation {
+  name = "ocaml-erm_xmpp-${version}";
+
+  src = fetchzip {
+    url = "https://github.com/ermine/xmpp/archive/v${version}.tar.gz";
+    sha256 = "0saw2dmrzv2aadrznvyvchnhivvcwm78x9nwf6flq5v0pqddapk2";
+  };
+
+  patches = [ disable-tests ];
+
+  buildInputs = [ ocaml findlib camlp4 ];
+  propagatedBuildInputs = [ erm_xml cryptokit ];
+
+  createFindlibDestdir = true;
+
+  meta = {
+    homepage = https://github.com/ermine/xmpp;
+    description = "OCaml based XMPP implementation";
+    platforms = ocaml.meta.platforms;
+    license = stdenv.lib.licenses.bsd3;
+    maintainers = with stdenv.lib.maintainers; [ vbgl ];
+  };
+}