jackline: 2020-04-24 → 2020-09-03
Port package to dune
This commit is contained in:
parent
ee222ce046
commit
d8e5c6072a
@ -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";
|
pname = "jackline";
|
||||||
version = "unstable-2020-04-24";
|
version = "unstable-2020-09-03";
|
||||||
|
|
||||||
|
minimumOCamlVersion = "4.08";
|
||||||
|
|
||||||
|
useDune2 = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "hannesm";
|
owner = "hannesm";
|
||||||
repo = "jackline";
|
repo = "jackline";
|
||||||
rev = "885b97b90d565f5f7c2b5f66f5edf14a82251b87";
|
rev = "dd5f19636c9b99b72c348f0f639452d87b7c017c";
|
||||||
sha256 = "1mdn413ya2g0a1mrdbh1b65gnygrxb08k99z5lmidhh34kd1llsj";
|
sha256 = "076smdgig4nwvqsqxa6gsl0c3daq5agwgzp4n2y8xxm3qiq91y89";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = with ocamlPackages; [
|
nativeBuildInpts = [
|
||||||
ocaml ocamlbuild findlib topkg ppx_sexp_conv ppx_deriving
|
ppx_sexp_conv
|
||||||
erm_xmpp tls mirage-crypto mirage-crypto-pk x509 domain-name
|
ppx_deriving
|
||||||
ocaml_lwt otr astring ptime notty sexplib hex uutf
|
|
||||||
dns-client base64
|
|
||||||
];
|
];
|
||||||
|
|
||||||
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 lib; {
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
|
||||||
homepage = "https://github.com/hannesm/jackline";
|
homepage = "https://github.com/hannesm/jackline";
|
||||||
description = "minimalistic secure XMPP client in OCaml";
|
description = "minimalistic secure XMPP client in OCaml";
|
||||||
license = licenses.bsd2;
|
license = licenses.bsd2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user