diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2015-02-27 00:13:57 +0100 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2015-02-27 18:37:20 +0100 |
commit | f57163265bc16c1e91d5c385b228d72ff2ffb28b (patch) | |
tree | 283f9ab96c2f25e955e4e67ff87562d10de369cc /pkgs/development/ocaml-modules/erm_xmpp | |
parent | b6f26346e2be28d371851cd17250de488f51c3cf (diff) |
Adds ocaml-erm_xmpp
OCaml based XMPP implementation
Homepage: https://github.com/ermine/xmpp
Diffstat (limited to 'pkgs/development/ocaml-modules/erm_xmpp')
-rw-r--r-- | pkgs/development/ocaml-modules/erm_xmpp/default.nix | 33 |
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 000000000000..7508a14738dc --- /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 ]; + }; +} |