2017-12-14 07:36:29 +00:00
|
|
|
{ stdenv, fetchFromGitHub, ocamlPackages }:
|
2016-11-03 10:37:14 +00:00
|
|
|
|
|
|
|
assert stdenv.lib.versionAtLeast ocamlPackages.ocaml.version "4.02.2";
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-12-28 08:01:03 +00:00
|
|
|
version = "2017-12-24";
|
2016-11-03 10:37:14 +00:00
|
|
|
name = "jackline-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hannesm";
|
|
|
|
repo = "jackline";
|
2017-12-28 08:01:03 +00:00
|
|
|
rev = "8678e8a1a06e641218a31ae25150040202f89289";
|
|
|
|
sha256 = "05z9kvd7gwr59ic7hnmbayhwyyqd41xxz01cvdlcgplk3z7zlwg5";
|
2016-11-03 10:37:14 +00:00
|
|
|
};
|
|
|
|
|
2018-01-15 04:01:50 +00:00
|
|
|
patches = [ ./tls-0.9.0.patch ];
|
|
|
|
|
2016-11-03 10:37:14 +00:00
|
|
|
buildInputs = with ocamlPackages; [
|
|
|
|
ocaml ocamlbuild findlib topkg ppx_sexp_conv
|
|
|
|
erm_xmpp_0_3 tls nocrypto x509 ocaml_lwt otr astring
|
2017-12-28 08:01:03 +00:00
|
|
|
ptime notty sexplib hex uutf
|
2016-11-03 10:37:14 +00:00
|
|
|
];
|
|
|
|
|
2017-12-14 07:36:29 +00:00
|
|
|
buildPhase = "${ocamlPackages.topkg.run} build --pinned true";
|
2016-11-03 10:37:14 +00:00
|
|
|
|
2017-12-14 07:36:29 +00:00
|
|
|
inherit (ocamlPackages.topkg) installPhase;
|
2016-11-03 10:37:14 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/hannesm/jackline;
|
|
|
|
description = "Terminal-based XMPP client in OCaml";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ sternenseemann ];
|
|
|
|
};
|
|
|
|
}
|