jackline: 2020-04-24 → 2020-09-03

Port package to dune
This commit is contained in:
sternenseemann 2020-08-31 12:00:17 +02:00 committed by Vincent Laporte
parent ee222ce046
commit d8e5c6072a

View File

@ -1,30 +1,50 @@
{ stdenv, fetchFromGitHub, ocamlPackages }:
{ lib, fetchFromGitHub, ocamlPackages }:
assert stdenv.lib.versionAtLeast ocamlPackages.ocaml.version "4.07";
with ocamlPackages;
stdenv.mkDerivation {
buildDunePackage rec {
pname = "jackline";
version = "unstable-2020-04-24";
version = "unstable-2020-09-03";
minimumOCamlVersion = "4.08";
useDune2 = true;
src = fetchFromGitHub {
owner = "hannesm";
repo = "jackline";
rev = "885b97b90d565f5f7c2b5f66f5edf14a82251b87";
sha256 = "1mdn413ya2g0a1mrdbh1b65gnygrxb08k99z5lmidhh34kd1llsj";
rev = "dd5f19636c9b99b72c348f0f639452d87b7c017c";
sha256 = "076smdgig4nwvqsqxa6gsl0c3daq5agwgzp4n2y8xxm3qiq91y89";
};
buildInputs = with ocamlPackages; [
ocaml ocamlbuild findlib topkg ppx_sexp_conv ppx_deriving
erm_xmpp tls mirage-crypto mirage-crypto-pk x509 domain-name
ocaml_lwt otr astring ptime notty sexplib hex uutf
dns-client base64
];
nativeBuildInpts = [
ppx_sexp_conv
ppx_deriving
];
buildPhase = "${ocamlPackages.topkg.run} build --pinned true";
buildInputs = [
erm_xmpp
tls
mirage-crypto-pk
x509
domain-name
ocaml_lwt
otr
astring
ptime
notty
sexplib
hex
uutf
uchar
uuseg
uucp
dns-client
cstruct
base64
];
inherit (ocamlPackages.topkg) installPhase;
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://github.com/hannesm/jackline";
description = "minimalistic secure XMPP client in OCaml";
license = licenses.bsd2;