parent
5fc73fd52e
commit
794158fcd5
@ -0,0 +1,24 @@ |
||||
{ stdenv, fetchurl, ocaml, findlib, dune }: |
||||
|
||||
{ pname, version, buildInputs ? [], ... }@args: |
||||
|
||||
if args ? minimumOCamlVersion && |
||||
! stdenv.lib.versionAtLeast ocaml.version args.minimumOCamlVersion |
||||
then throw "${pname}-${version} is not available for OCaml ${ocaml.version}" |
||||
else |
||||
|
||||
stdenv.mkDerivation ({ |
||||
|
||||
buildPhase = "dune build -p ${pname}"; |
||||
checkPhase = "dune runtest -p ${pname}"; |
||||
inherit (dune) installPhase; |
||||
|
||||
meta.platform = ocaml.meta.platform; |
||||
|
||||
} // args // { |
||||
|
||||
name = "ocaml${ocaml.version}-${pname}-${version}"; |
||||
|
||||
buildInputs = [ ocaml dune findlib ] ++ buildInputs; |
||||
|
||||
}) |
@ -1,37 +1,26 @@ |
||||
{ stdenv, fetchFromGitHub, ocaml, findlib, dune, alcotest, result |
||||
, bigstringaf |
||||
}: |
||||
{ stdenv, fetchFromGitHub, buildDunePackage, alcotest, result, bigstringaf }: |
||||
|
||||
if !stdenv.lib.versionAtLeast ocaml.version "4.03" |
||||
then throw "angstrom is not available for OCaml ${ocaml.version}" |
||||
else |
||||
|
||||
stdenv.mkDerivation rec { |
||||
buildDunePackage rec { |
||||
pname = "angstrom"; |
||||
version = "0.10.0"; |
||||
name = "ocaml${ocaml.version}-angstrom-${version}"; |
||||
|
||||
minimumOCamlVersion = "4.03"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "inhabitedtype"; |
||||
repo = "angstrom"; |
||||
rev = "${version}"; |
||||
repo = pname; |
||||
rev = version; |
||||
sha256 = "0lh6024yf9ds0nh9i93r9m6p5psi8nvrqxl5x7jwl13zb0r9xfpw"; |
||||
}; |
||||
|
||||
buildInputs = [ ocaml findlib dune alcotest ]; |
||||
buildInputs = [ alcotest ]; |
||||
propagatedBuildInputs = [ bigstringaf result ]; |
||||
|
||||
buildPhase = "dune build -p angstrom"; |
||||
|
||||
doCheck = true; |
||||
checkPhase = "dune runtest -p angstrom"; |
||||
|
||||
inherit (dune) installPhase; |
||||
|
||||
meta = { |
||||
homepage = https://github.com/inhabitedtype/angstrom; |
||||
description = "OCaml parser combinators built for speed and memory efficiency"; |
||||
license = stdenv.lib.licenses.bsd3; |
||||
maintainers = with stdenv.lib.maintainers; [ sternenseemann ]; |
||||
inherit (ocaml.meta) platforms; |
||||
}; |
||||
} |
||||
|
@ -1,32 +1,25 @@ |
||||
{ stdenv, fetchFromGitHub, ocaml, findlib, dune, alcotest }: |
||||
{ stdenv, fetchFromGitHub, buildDunePackage, alcotest }: |
||||
|
||||
if !stdenv.lib.versionAtLeast ocaml.version "4.03" |
||||
then throw "bigstringaf is not available for OCaml ${ocaml.version}" |
||||
else |
||||
|
||||
stdenv.mkDerivation rec { |
||||
buildDunePackage rec { |
||||
pname = "bigstringaf"; |
||||
version = "0.3.0"; |
||||
name = "ocaml${ocaml.version}-bigstringaf-${version}"; |
||||
|
||||
minimumOCamlVersion = "4.03"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "inhabitedtype"; |
||||
repo = "bigstringaf"; |
||||
repo = pname; |
||||
rev = version; |
||||
sha256 = "1yx6hv8rk0ldz1h6kk00rwg8abpfc376z00aifl9f5rn7xavpscs"; |
||||
}; |
||||
|
||||
buildInputs = [ ocaml findlib dune alcotest ]; |
||||
|
||||
buildInputs = [ alcotest ]; |
||||
doCheck = true; |
||||
checkPhase = "dune runtest"; |
||||
|
||||
inherit (dune) installPhase; |
||||
|
||||
meta = { |
||||
description = "Bigstring intrinsics and fast blits based on memcpy/memmove"; |
||||
license = stdenv.lib.licenses.bsd3; |
||||
maintainers = [ stdenv.lib.maintainers.vbgl ]; |
||||
inherit (src.meta) homepage; |
||||
inherit (ocaml.meta) platforms; |
||||
}; |
||||
} |
||||
|
@ -1,16 +1,14 @@ |
||||
{ stdenv, ocaml, findlib, dune, cohttp, ocaml_lwt, uri, ppx_sexp_conv }: |
||||
{ stdenv, buildDunePackage, cohttp, ocaml_lwt, uri, ppx_sexp_conv }: |
||||
|
||||
if !stdenv.lib.versionAtLeast cohttp.version "0.99" |
||||
then cohttp |
||||
else |
||||
|
||||
stdenv.mkDerivation rec { |
||||
name = "ocaml${ocaml.version}-cohttp-lwt-${version}"; |
||||
inherit (cohttp) version src installPhase meta; |
||||
buildDunePackage rec { |
||||
pname = "cohttp-lwt"; |
||||
inherit (cohttp) version src meta; |
||||
|
||||
buildInputs = [ ocaml findlib dune uri ppx_sexp_conv ]; |
||||
buildInputs = [ uri ppx_sexp_conv ]; |
||||
|
||||
propagatedBuildInputs = [ cohttp ocaml_lwt ]; |
||||
|
||||
buildPhase = "dune build -p cohttp-lwt"; |
||||
} |
||||
|
@ -1,16 +1,14 @@ |
||||
{ stdenv, ocaml, findlib, dune, ppx_sexp_conv, conduit, ocaml_lwt }: |
||||
{ stdenv, buildDunePackage, ppx_sexp_conv, conduit, ocaml_lwt }: |
||||
|
||||
if !stdenv.lib.versionAtLeast conduit.version "1.0" |
||||
then conduit |
||||
else |
||||
|
||||
stdenv.mkDerivation rec { |
||||
name = "ocaml${ocaml.version}-conduit-lwt-${version}"; |
||||
inherit (conduit) version src installPhase meta; |
||||
buildDunePackage rec { |
||||
pname = "conduit-lwt"; |
||||
inherit (conduit) version src meta; |
||||
|
||||
buildInputs = [ ocaml findlib dune ppx_sexp_conv ]; |
||||
buildInputs = [ ppx_sexp_conv ]; |
||||
|
||||
propagatedBuildInputs = [ conduit ocaml_lwt ]; |
||||
|
||||
buildPhase = "dune build -p conduit-lwt"; |
||||
} |
||||
|
@ -1,12 +1,10 @@ |
||||
{ stdenv, ocaml, cstruct, lwt }: |
||||
{ buildDunePackage, cstruct, lwt }: |
||||
|
||||
assert stdenv.lib.versionAtLeast ocaml.version "4.02"; |
||||
buildDunePackage { |
||||
pname = "cstruct-lwt"; |
||||
inherit (cstruct) version src unpackCmd meta; |
||||
|
||||
stdenv.mkDerivation rec { |
||||
name = "ocaml${ocaml.version}-cstruct-lwt-${version}"; |
||||
inherit (cstruct) version src unpackCmd buildInputs installPhase meta; |
||||
minimumOCamlVersion = "4.02"; |
||||
|
||||
propagatedBuildInputs = [ cstruct lwt ]; |
||||
|
||||
buildPhase = "${cstruct.buildPhase}-lwt"; |
||||
} |
||||
|
@ -1,13 +1,11 @@ |
||||
{ stdenv, ocaml, cstruct, ppx_tools_versioned }: |
||||
{ buildDunePackage, cstruct, ppx_tools_versioned }: |
||||
|
||||
assert stdenv.lib.versionAtLeast ocaml.version "4.02"; |
||||
buildDunePackage { |
||||
pname = "ppx_cstruct"; |
||||
inherit (cstruct) version src unpackCmd meta; |
||||
|
||||
stdenv.mkDerivation rec { |
||||
name = "ocaml${ocaml.version}-ppx_cstruct-${version}"; |
||||
inherit (cstruct) version src unpackCmd installPhase meta; |
||||
minimumOCamlVersion = "4.02"; |
||||
|
||||
buildInputs = cstruct.buildInputs ++ [ ppx_tools_versioned ]; |
||||
buildInputs = [ ppx_tools_versioned ]; |
||||
propagatedBuildInputs = [ cstruct ]; |
||||
|
||||
buildPhase = "dune build -p ppx_cstruct"; |
||||
} |
||||
|
@ -1,12 +1,10 @@ |
||||
{ stdenv, ocaml, cstruct }: |
||||
{ buildDunePackage, cstruct }: |
||||
|
||||
assert stdenv.lib.versionAtLeast ocaml.version "4.02"; |
||||
buildDunePackage { |
||||
pname = "cstruct-unix"; |
||||
inherit (cstruct) version src unpackCmd meta; |
||||
|
||||
stdenv.mkDerivation rec { |
||||
name = "ocaml${ocaml.version}-cstruct-unix-${version}"; |
||||
inherit (cstruct) version src unpackCmd buildInputs installPhase meta; |
||||
minimumOCamlVersion = "4.02"; |
||||
|
||||
propagatedBuildInputs = [ cstruct ]; |
||||
|
||||
buildPhase = "${cstruct.buildPhase}-unix"; |
||||
} |
||||
|
@ -1,26 +1,20 @@ |
||||
{ stdenv, fetchurl, ocaml, findlib, dune }: |
||||
{ stdenv, fetchurl, buildDunePackage }: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
buildDunePackage rec { |
||||
pname = "csv"; |
||||
version = "2.1"; |
||||
name = "ocaml${ocaml.version}-csv-${version}"; |
||||
|
||||
src = fetchurl { |
||||
url = "https://github.com/Chris00/ocaml-csv/releases/download/2.1/csv-2.1.tbz"; |
||||
url = "https://github.com/Chris00/ocaml-${pname}/releases/download/${version}/csv-${version}.tbz"; |
||||
sha256 = "0cgfb6cwhwy7ypc1i3jyfz6sdnykp75aqi6kk0g1a2d81yjwzbcg"; |
||||
}; |
||||
|
||||
unpackCmd = "tar -xjf $src"; |
||||
|
||||
buildInputs = [ ocaml findlib dune ]; |
||||
|
||||
buildPhase = "dune build -p csv"; |
||||
|
||||
inherit (dune) installPhase; |
||||
|
||||
meta = { |
||||
description = "A pure OCaml library to read and write CSV files"; |
||||
license = stdenv.lib.licenses.lgpl21; |
||||
maintainers = [ stdenv.lib.maintainers.vbgl ]; |
||||
homepage = https://github.com/Chris00/ocaml-csv; |
||||
inherit (ocaml.meta) platforms; |
||||
}; |
||||
} |
||||
|
@ -1,27 +1,22 @@ |
||||
{ stdenv, fetchFromGitHub, ocaml, findlib, dune, doc-ock, tyxml, xmlm }: |
||||
{ stdenv, fetchFromGitHub, buildDunePackage, doc-ock, tyxml, xmlm }: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
name = "ocaml${ocaml.version}-doc-ock-html-${version}"; |
||||
buildDunePackage rec { |
||||
pname = "doc-ock-html"; |
||||
version = "1.2.1"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "ocaml-doc"; |
||||
repo = "doc-ock-html"; |
||||
repo = pname; |
||||
rev = "v${version}"; |
||||
sha256 = "1y620h48qrplmcm78g7c78zibpkai4j3icwmnx95zb3r8xq8554y"; |
||||
}; |
||||
|
||||
buildInputs = [ ocaml findlib dune ]; |
||||
|
||||
propagatedBuildInputs = [ doc-ock tyxml xmlm ]; |
||||
|
||||
inherit (dune) installPhase; |
||||
|
||||
meta = { |
||||
description = "From doc-ock to HTML"; |
||||
license = stdenv.lib.licenses.isc; |
||||
maintainers = [ stdenv.lib.maintainers.vbgl ]; |
||||
inherit (ocaml.meta) platforms; |
||||
inherit (src.meta) homepage; |
||||
}; |
||||
} |
||||
|
@ -1,27 +1,22 @@ |
||||
{ stdenv, fetchFromGitHub, ocaml, findlib, dune, doc-ock, menhir, xmlm }: |
||||
{ stdenv, fetchFromGitHub, buildDunePackage, doc-ock, menhir, xmlm }: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
name = "ocaml${ocaml.version}-doc-ock-xml-${version}"; |
||||
buildDunePackage rec { |
||||
pname = "doc-ock-xml"; |
||||
version = "1.2.1"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "ocaml-doc"; |
||||
repo = "doc-ock-xml"; |
||||
repo = pname; |
||||
rev = "v${version}"; |
||||
sha256 = "1s27ri7vj9ixi5p5ixg6g6invk96807bvxbqjrr1dm8sxgl1nd20"; |
||||
}; |
||||
|
||||
buildInputs = [ ocaml findlib dune ]; |
||||
|
||||
propagatedBuildInputs = [ doc-ock menhir xmlm ]; |
||||
|
||||
inherit (dune) installPhase; |
||||
|
||||
meta = { |
||||
description = "XML printer and parser for Doc-Ock"; |
||||
license = stdenv.lib.licenses.isc; |
||||
maintainers = [ stdenv.lib.maintainers.vbgl ]; |
||||
inherit (ocaml.meta) platforms; |
||||
inherit (src.meta) homepage; |
||||
}; |
||||
} |
||||
|
@ -1,27 +1,24 @@ |
||||
{ stdenv, fetchFromGitHub, ocaml, findlib, dune, octavius, cppo }: |
||||
{ stdenv, fetchFromGitHub, buildDunePackage, octavius, cppo }: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
name = "ocaml${ocaml.version}-doc-ock-${version}"; |
||||
buildDunePackage rec { |
||||
pname = "doc-ock"; |
||||
version = "1.2.1"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "ocaml-doc"; |
||||
repo = "doc-ock"; |
||||
repo = pname; |
||||
rev = "v${version}"; |
||||
sha256 = "090vprm12jrl55yllk1hdzbsqyr107yjs2qnc49yahdhvnr4h5b7"; |
||||
}; |
||||
|
||||
buildInputs = [ ocaml findlib dune cppo ]; |
||||
buildInputs = [ cppo ]; |
||||
|
||||
propagatedBuildInputs = [ octavius ]; |
||||
|
||||
inherit (dune) installPhase; |
||||
|
||||
meta = { |
||||
description = "Extract documentation from OCaml files"; |
||||
license = stdenv.lib.licenses.isc; |
||||
maintainers = [ stdenv.lib.maintainers.vbgl ]; |
||||
inherit (ocaml.meta) platforms; |
||||
inherit (src.meta) homepage; |
||||
}; |
||||
} |
||||
|
@ -1,27 +1,20 @@ |
||||
{ stdenv, fetchzip, ocaml, findlib, dune, jsonm, hex, sexplib }: |
||||
{ stdenv, fetchzip, buildDunePackage, jsonm, hex, sexplib }: |
||||
|
||||
let version = "0.6.0"; in |
||||
|
||||
stdenv.mkDerivation { |
||||
name = "ocaml${ocaml.version}-ezjsonm-${version}"; |
||||
buildDunePackage rec { |
||||
pname = "ezjsonm"; |
||||
version = "0.6.0"; |
||||
|
||||
src = fetchzip { |
||||
url = "https://github.com/mirage/ezjsonm/archive/${version}.tar.gz"; |
||||
url = "https://github.com/mirage/${pname}/archive/${version}.tar.gz"; |
||||
sha256 = "18g64lhai0bz65b9fil12vlgfpwa9b5apj7x6d7n4zzm18qfazvj"; |
||||
}; |
||||
|
||||
buildInputs = [ ocaml findlib dune ]; |
||||
propagatedBuildInputs = [ jsonm hex sexplib ]; |
||||
|
||||
buildPhase = "dune build -p ezjsonm"; |
||||
|
||||
inherit (dune) installPhase; |
||||
|
||||
meta = { |
||||
description = "An easy interface on top of the Jsonm library"; |
||||
homepage = https://github.com/mirage/ezjsonm; |
||||
license = stdenv.lib.licenses.isc; |
||||
maintainers = with stdenv.lib.maintainers; [ vbgl ]; |
||||
platforms = ocaml.meta.platforms or []; |
||||
}; |
||||
} |
||||
|
@ -1,34 +1,25 @@ |
||||
{ stdenv, fetchFromGitHub, ocaml, findlib, dune, alcotest }: |
||||
{ stdenv, fetchFromGitHub, buildDunePackage, alcotest }: |
||||
|
||||
if !stdenv.lib.versionAtLeast ocaml.version "4.02" |
||||
then throw "faraday is not available for OCaml ${ocaml.version}" |
||||
else |
||||
|
||||
stdenv.mkDerivation rec { |
||||
name = "ocaml${ocaml.version}-faraday-${version}"; |
||||
buildDunePackage rec { |
||||
pname = "faraday"; |
||||
version = "0.5.0"; |
||||
|
||||
minimumOCamlVersion = "4.02"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "inhabitedtype"; |
||||
repo = "faraday"; |
||||
repo = pname; |
||||
rev = version; |
||||
sha256 = "1kql0il1frsbx6rvwqd7ahi4m14ik6la5an6c2w4x7k00ndm4d7n"; |
||||
}; |
||||
|
||||
buildInputs = [ ocaml findlib dune alcotest ]; |
||||
|
||||
buildPhase = "dune build -p faraday"; |
||||
|
||||
buildInputs = [ alcotest ]; |
||||
doCheck = true; |
||||
checkPhase = "jbuilder runtest"; |
||||
|
||||
inherit (dune) installPhase; |
||||
|
||||
meta = { |
||||
description = "Serialization library built for speed and memory efficiency"; |
||||
license = stdenv.lib.licenses.bsd3; |
||||
maintainers = [ stdenv.lib.maintainers.vbgl ]; |
||||
inherit (src.meta) homepage; |
||||
inherit (ocaml.meta) platforms; |
||||
}; |
||||
} |
||||
|
@ -1,28 +1,24 @@ |
||||
{ stdenv, fetchFromGitHub, ocaml, findlib, dune, ocurl, cryptokit, ocaml_extlib, yojson, ocamlnet, xmlm }: |
||||
{ stdenv, fetchFromGitHub, buildDunePackage, ocurl, cryptokit, ocaml_extlib, yojson, ocamlnet, xmlm }: |
||||
|
||||
if !stdenv.lib.versionAtLeast ocaml.version "4.02" |
||||
then throw "gapi-ocaml is not available for OCaml ${ocaml.version}" |
||||
else |
||||
|
||||
stdenv.mkDerivation rec { |
||||
name = "gapi-ocaml-${version}"; |
||||
buildDunePackage rec { |
||||
pname = "gapi-ocaml"; |
||||
version = "0.3.6"; |
||||
|
||||
minimumOCamlVersion = "4.02"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "astrada"; |
||||
repo = "gapi-ocaml"; |
||||
repo = pname; |
||||
rev = "v${version}"; |
||||
sha256 = "0qgsy51bhkpfgl5rdnjw4bqs5fbh2w4vwrfbl8y3lh1wrqmnwci4"; |
||||
}; |
||||
buildInputs = [ ocaml dune findlib ]; |
||||
propagatedBuildInputs = [ ocurl cryptokit ocaml_extlib yojson ocamlnet xmlm ]; |
||||
|
||||
inherit (dune) installPhase; |
||||
propagatedBuildInputs = [ ocurl cryptokit ocaml_extlib yojson ocamlnet xmlm ]; |
||||
|
||||
meta = { |
||||
description = "OCaml client for google services"; |
||||
homepage = http://gapi-ocaml.forge.ocamlcore.org; |
||||
license = stdenv.lib.licenses.mit; |
||||
maintainers = with stdenv.lib.maintainers; [ bennofs ]; |
||||
platforms = ocaml.meta.platforms or []; |
||||
}; |
||||
} |
||||
|
@ -1,24 +1,15 @@ |
||||
{ stdenv, ocaml, findlib, dune, git, cohttp-lwt |
||||
, alcotest, mtime, nocrypto |
||||
}: |
||||
{ buildDunePackage, git, cohttp-lwt, alcotest, mtime, nocrypto }: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
name = "ocaml${ocaml.version}-git-http-${version}"; |
||||
buildDunePackage rec { |
||||
pname = "git-http"; |
||||
inherit (git) version src; |
||||
|
||||
buildInputs = [ ocaml findlib dune alcotest mtime nocrypto ]; |
||||
|
||||
buildInputs = [ alcotest mtime nocrypto ]; |
||||
propagatedBuildInputs = [ git cohttp-lwt ]; |
||||
|
||||
buildPhase = "dune build -p git-http"; |
||||
|
||||
inherit (dune) installPhase; |
||||
|
||||
doCheck = true; |
||||
checkPhase = "dune runtest -p git-http"; |
||||
|
||||
meta = { |
||||
description = "Client implementation of the “Smart” HTTP Git protocol in pure OCaml"; |
||||
inherit (git.meta) homepage license maintainers platforms; |
||||
inherit (git.meta) homepage license maintainers; |
||||
}; |
||||
} |
||||
|
@ -1,22 +1,14 @@ |
||||
{ stdenv, ocaml, findlib, dune, git-http |
||||
, cohttp-lwt-unix |
||||
, tls, cmdliner, mtime |
||||
}: |
||||
{ buildDunePackage, git-http, cohttp-lwt-unix, tls, cmdliner, mtime }: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
name = "ocaml${ocaml.version}-git-unix-${version}"; |
||||
buildDunePackage rec { |
||||
pname = "git-unix"; |
||||
inherit (git-http) version src; |
||||
|
||||
buildInputs = [ ocaml findlib dune cmdliner mtime ]; |
||||
|
||||
buildInputs = [ cmdliner mtime ]; |
||||
propagatedBuildInputs = [ cohttp-lwt-unix git-http tls ]; |
||||
|
||||
buildPhase = "dune build -p git-unix"; |
||||
|
||||
inherit (dune) installPhase; |
||||
|
||||
meta = { |
||||
description = "Unix backend for the Git protocol(s)"; |
||||
inherit (git-http.meta) homepage license maintainers platforms; |
||||
inherit (git-http.meta) homepage license maintainers; |
||||
}; |
||||
} |
||||
|
@ -1,34 +1,25 @@ |
||||
{ stdenv, fetchurl, ocaml, findlib, dune, cstruct }: |
||||
{ stdenv, fetchurl, buildDunePackage, cstruct }: |
||||
|
||||
if !stdenv.lib.versionAtLeast ocaml.version "4.02" |
||||
then throw "hex is not available for OCaml ${ocaml.version}" |
||||
else |
||||
buildDunePackage rec { |
||||
pname = "hex"; |
||||
version = "1.2.0"; |
||||
|
||||
let version = "1.2.0"; in |
||||
|
||||
stdenv.mkDerivation { |
||||
name = "ocaml${ocaml.version}-hex-${version}"; |
||||
minimumOCamlVersion = "4.02"; |
||||
|
||||
src = fetchurl { |
||||
url = "https://github.com/mirage/ocaml-hex/releases/download/v1.2.0/hex-1.2.0.tbz"; |
||||
url = "https://github.com/mirage/ocaml-${pname}/releases/download/v${version}/hex-${version}.tbz"; |
||||
sha256 = "17hqf7z5afp2z2c55fk5myxkm7cm74259rqm94hcxkqlpdaqhm8h"; |
||||
}; |
||||
|
||||
unpackCmd = "tar -xjf $curSrc"; |
||||
|
||||
buildInputs = [ ocaml findlib dune ]; |
||||
propagatedBuildInputs = [ cstruct ]; |
||||
|
||||
buildPhase = "dune build -p hex"; |
||||
doCheck = true; |
||||
checkPhase = "jbuilder runtest"; |
||||
inherit (dune) installPhase; |
||||
|
||||
meta = { |
||||
description = "Mininal OCaml library providing hexadecimal converters"; |
||||
homepage = https://github.com/mirage/ocaml-hex; |
||||
license = stdenv.lib.licenses.isc; |
||||
maintainers = with stdenv.lib.maintainers; [ vbgl ]; |
||||
platforms = ocaml.meta.platforms or []; |
||||
}; |
||||
} |
||||
|
@ -1,33 +1,24 @@ |
||||
{ stdenv, fetchFromGitHub, ocaml, findlib, dune |
||||
, angstrom, faraday, alcotest |
||||
}: |
||||
{ stdenv, fetchFromGitHub, buildDunePackage, angstrom, faraday, alcotest }: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
buildDunePackage rec { |
||||
pname = "httpaf"; |
||||
version = "0.4.1"; |
||||
name = "ocaml${ocaml.version}-httpaf-${version}"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "inhabitedtype"; |
||||
repo = "httpaf"; |
||||
repo = pname; |
||||
rev = version; |
||||
sha256 = "0i2r004ihj00hd97475y8nhjqjln58xx087zcjl0dfp0n7q80517"; |
||||
}; |
||||
|
||||
buildInputs = [ ocaml findlib dune alcotest ]; |
||||
buildInputs = [ alcotest ]; |
||||
propagatedBuildInputs = [ angstrom faraday ]; |
||||
|
||||
buildPhase = "dune build -p httpaf"; |
||||
|
||||
doCheck = true; |
||||
checkPhase = "dune runtest -p httpaf"; |
||||
|
||||
inherit (dune) installPhase; |
||||
|
||||
meta = { |
||||
description = "A high-performance, memory-efficient, and scalable web server for OCaml"; |
||||
license = stdenv.lib.licenses.bsd3; |
||||
maintainers = [ stdenv.lib.maintainers.vbgl ]; |
||||
inherit (src.meta) homepage; |
||||
inherit (ocaml.meta) platforms; |
||||
}; |
||||
} |
||||
|
@ -1,28 +1,19 @@ |
||||
{ stdenv, fetchFromGitHub, ocaml, dune, findlib, defaultVersion ? "0.11.0" }: |
||||
{ stdenv, fetchFromGitHub, buildDunePackage, defaultVersion ? "0.11.0" }: |
||||
|
||||
{ name, version ? defaultVersion, buildInputs ? [], hash, meta, ...}@args: |
||||
{ pname, version ? defaultVersion, hash, ...}@args: |
||||
|
||||
if !stdenv.lib.versionAtLeast ocaml.version "4.04" |
||||
then throw "${name}-${version} is not available for OCaml ${ocaml.version}" else |
||||
|
||||
stdenv.mkDerivation (args // { |
||||
name = "ocaml${ocaml.version}-${name}-${version}"; |
||||
buildDunePackage (args // { |
||||
inherit version; |
||||
|
||||
minimumOCamlVersion = "4.04"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "janestreet"; |
||||
repo = name; |
||||
repo = pname; |
||||
rev = "v${version}"; |
||||
sha256 = hash; |
||||
}; |
||||
|
||||
buildInputs = [ ocaml dune findlib ] ++ buildInputs; |
||||
|
||||
inherit (dune) installPhase; |
||||
|
||||
meta = { |
||||
license = stdenv.lib.licenses.asl20; |
||||
inherit (ocaml.meta) platforms; |
||||
homepage = "https://github.com/janestreet/${name}"; |
||||
} // meta; |
||||
meta.license = stdenv.lib.licenses.asl20; |
||||
meta.homepage = "https://github.com/janestreet/${pname}"; |
||||
}) |
||||
|
@ -1,29 +1,24 @@ |
||||
{ stdenv, fetchFromGitHub, ocaml, dune, findlib, result }: |
||||
{ stdenv, fetchFromGitHub, buildDunePackage, result }: |
||||
|
||||
if !stdenv.lib.versionAtLeast ocaml.version "4.02" |
||||
then throw "linenoise is not available for OCaml ${ocaml.version}" |
||||
else |
||||
|
||||
stdenv.mkDerivation rec { |
||||
name = "ocaml${ocaml.version}-linenoise-${version}"; |
||||
buildDunePackage rec { |
||||
pname = "linenoise"; |
||||
version = "1.1.0"; |
||||
|
||||
minimumOCamlVersion = "4.02"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "fxfactorial"; |
||||
repo = "ocaml-linenoise"; |
||||
repo = "ocaml-${pname}"; |
||||
rev = "v${version}"; |
||||
sha256 = "1h6rqfgmhmd7p5z8yhk6zkbrk4yzw1v2fgwas2b7g3hqs6y0xj0q"; |
||||
}; |
||||
|
||||
buildInputs = [ ocaml findlib dune ]; |
||||
propagatedBuildInputs = [ result ]; |
||||
|
||||
inherit (dune) installPhase; |
||||
|
||||
meta = { |
||||
description = "OCaml bindings to linenoise"; |
||||
license = stdenv.lib.licenses.bsd3; |
||||
maintainers = [ stdenv.lib.maintainers.vbgl ]; |
||||
inherit (ocaml.meta) platforms; |
||||
inherit (src.meta) homepage; |
||||
}; |
||||
} |
||||
|
@ -1,19 +1,15 @@ |
||||
{ stdenv, dune, ocaml, findlib, lwt, ppx_tools_versioned }: |
||||
{ stdenv, buildDunePackage, lwt, ppx_tools_versioned }: |
||||
|
||||
stdenv.mkDerivation { |
||||
name = "ocaml${ocaml.version}-lwt_ppx-${lwt.version}"; |
||||
buildDunePackage { |
||||
pname = "lwt_ppx"; |
||||
|
||||
inherit (lwt) src; |
||||
|
||||
buildInputs = [ dune ocaml findlib ppx_tools_versioned ]; |
||||
inherit (lwt) src version; |
||||
|
||||
buildInputs = [ ppx_tools_versioned ]; |
||||
propagatedBuildInputs = [ lwt ]; |
||||
|
||||
buildPhase = "dune build -p lwt_ppx"; |
||||
installPhase = "${dune.installPhase} lwt_ppx.install"; |
||||
|
||||
meta = { |
||||
description = "Ppx syntax extension for Lwt"; |
||||
inherit (lwt.meta) license platforms homepage maintainers; |
||||
inherit (lwt.meta) license homepage maintainers; |
||||
}; |
||||
} |
||||
|
@ -1,33 +1,24 @@ |
||||
{ stdenv, fetchFromGitHub, ocaml, findlib, dune, lwt }: |
||||
{ stdenv, fetchFromGitHub, buildDunePackage, lwt }: |
||||
|
||||
if !stdenv.lib.versionAtLeast ocaml.version "4.02" |
||||
then throw "lwt_log is not available for OCaml ${ocaml.version}" |
||||
else |
||||
|
||||
stdenv.mkDerivation rec { |
||||
buildDunePackage rec { |
||||
pname = "lwt_log"; |
||||
version = "1.1.0"; |
||||
name = "ocaml${ocaml.version}-lwt_log-${version}"; |
||||
|
||||
minimumOCamlVersion = "4.02"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "aantron"; |
||||
repo = "lwt_log"; |
||||
repo = pname; |
||||
rev = version; |
||||
sha256 = "1c58gkqfvyf2j11jwj2nh4iq999wj9xpnmr80hz9d0nk9fv333pi"; |
||||
}; |
||||
|
||||
buildInputs = [ ocaml findlib dune ]; |
||||
|
||||
propagatedBuildInputs = [ lwt ]; |
||||
|
||||
buildPhase = "dune build -p lwt_log"; |
||||
|
||||
inherit (dune) installPhase; |
||||
|
||||
meta = { |
||||
description = "Lwt logging library (deprecated)"; |
||||
homepage = "https://github.com/aantron/lwt_log"; |
||||
license = stdenv.lib.licenses.lgpl21; |
||||
inherit (ocaml.meta) platforms; |
||||
maintainers = [ stdenv.lib.maintainers.vbgl ]; |
||||
}; |
||||
} |
||||
|
@ -1,28 +1,22 @@ |
||||
{ stdenv, fetchzip, ocaml, findlib, dune, ssl, lwt }: |
||||
{ stdenv, fetchzip, buildDunePackage, ssl, lwt }: |
||||
|
||||
if !stdenv.lib.versionAtLeast ocaml.version "4.02" |
||||
then throw "lwt_ssl is not available for OCaml ${ocaml.version}" |
||||
else |
||||
|
||||
stdenv.mkDerivation rec { |
||||
buildDunePackage rec { |
||||
pname = "lwt_ssl"; |
||||
version = "1.1.2"; |
||||
name = "ocaml${ocaml.version}-lwt_ssl-${version}"; |
||||
|
||||
minimumOCamlVersion = "4.02"; |
||||
|
||||
src = fetchzip { |
||||
url = "https://github.com/aantron/lwt_ssl/archive/${version}.tar.gz"; |
||||
url = "https://github.com/aantron/${pname}/archive/${version}.tar.gz"; |
||||
sha256 = "1q0an3djqjxv83v3iswi7m81braqx93kcrcwrxwmf6jzhdm4pn15"; |
||||
}; |
||||
|
||||
buildInputs = [ ocaml findlib dune ]; |
||||
propagatedBuildInputs = [ ssl lwt ]; |
||||
|
||||
inherit (dune) installPhase; |
||||
|
||||
meta = { |
||||
homepage = "https://github.com/aantron/lwt_ssl"; |
||||
description = "OpenSSL binding with concurrent I/O"; |
||||
license = stdenv.lib.licenses.lgpl21; |
||||
maintainers = [ stdenv.lib.maintainers.vbgl ]; |
||||
inherit (ocaml.meta) platforms; |
||||
}; |
||||
} |
||||
|
@ -1,33 +1,24 @@ |
||||
{ stdenv, fetchFromGitHub, ocaml, findlib, dune |
||||
, cstruct |
||||
}: |
||||
{ stdenv, fetchFromGitHub, buildDunePackage, cstruct }: |
||||
|
||||
if !stdenv.lib.versionAtLeast ocaml.version "4.02" |
||||
then throw "mstruct is not available for OCaml ${ocaml.version}" |
||||
else |
||||
|
||||
stdenv.mkDerivation rec { |
||||
buildDunePackage rec { |
||||
pname = "mstruct"; |
||||
version = "1.4.0"; |
||||
name = "ocaml${ocaml.version}-mstruct-${version}"; |
||||
|
||||
minimumOCamlVersion = "4.02"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "mirage"; |
||||
repo = "ocaml-mstruct"; |
||||
repo = "ocaml-${pname}"; |
||||
rev = "v${version}"; |
||||
sha256 = "1p4ygwzs3n1fj4apfib0z0sabpph21bkq1dgjk4bsa59pq4prncm"; |
||||
}; |
||||
|
||||
buildInputs = [ ocaml findlib dune ]; |
||||
|
||||
propagatedBuildInputs = [ cstruct ]; |
||||
|
||||
inherit (dune) installPhase; |
||||
|
||||
meta = { |
||||
description = "A thin mutable layer on top of cstruct"; |
||||
license = stdenv.lib.licenses.isc; |
||||
maintainers = [ stdenv.lib.maintainers.vbgl ]; |
||||
inherit (src.meta) homepage; |
||||
inherit (ocaml.meta) platforms; |
||||
}; |
||||
} |
||||
|
@ -1,30 +1,22 @@ |
||||
{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, dune, result }: |
||||
{ stdenv, fetchFromGitHub, buildDunePackage, result }: |
||||
|
||||
if !stdenv.lib.versionAtLeast ocaml.version "4.02" |
||||
then throw "ocaml-migrate-parsetree is not available for OCaml ${ocaml.version}" |
||||
else |
||||
|
||||
stdenv.mkDerivation rec { |
||||
name = "ocaml${ocaml.version}-ocaml-migrate-parsetree-${version}"; |
||||
buildDunePackage rec { |
||||
pname = "ocaml-migrate-parsetree"; |
||||
version = "1.1.0"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "ocaml-ppx"; |
||||
repo = "ocaml-migrate-parsetree"; |
||||
repo = pname; |
||||
rev = "v${version}"; |
||||
sha256 = "1d2n349d1cqm3dr09mwy5m9rfd4bkkqvri5i94wknpsrr35vnrr1"; |
||||
}; |
||||
|
||||
buildInputs = [ ocaml findlib ocamlbuild dune ]; |
||||
propagatedBuildInputs = [ result ]; |
||||
|
||||
inherit (dune) installPhase; |
||||
|
||||
meta = { |
||||
description = "Convert OCaml parsetrees between different major versions"; |
||||
license = stdenv.lib.licenses.lgpl21; |
||||
maintainers = [ stdenv.lib.maintainers.vbgl ]; |
||||
inherit (src.meta) homepage; |
||||
inherit (ocaml.meta) platforms; |
||||
}; |
||||
} |
||||
|
@ -1,26 +1,22 @@ |
||||
{ stdenv, fetchFromGitHub, ocaml, findlib, dune, cppo |
||||
, bos, cmdliner, tyxml |
||||
}: |
||||
{ stdenv, fetchFromGitHub, buildDunePackage, cppo, bos, cmdliner, tyxml }: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
name = "ocaml${ocaml.version}-odoc-${version}"; |
||||
buildDunePackage rec { |
||||
pname = "odoc"; |
||||
version = "1.3.0"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "ocaml"; |
||||
repo = "odoc"; |
||||
repo = pname; |
||||
rev = version; |
||||
sha256 = "0hjan5aj5zk8j8qyagv9r4hqm469mh207cv2m6kxwgnw0c3cz7sy"; |
||||
}; |
||||
|
||||
buildInputs = [ ocaml findlib dune cppo bos cmdliner tyxml ]; |
||||
|
||||
inherit (dune) installPhase; |
||||
buildInputs = [ cppo bos cmdliner tyxml ]; |
||||
|
||||
meta = { |
||||
description = "A documentation generator for OCaml"; |
||||
license = stdenv.lib.licenses.isc; |
||||
maintainers = [ stdenv.lib.maintainers.vbgl ]; |
||||
inherit (ocaml.meta) platforms; |
||||
inherit (src.meta) homepage; |
||||
}; |
||||
} |
||||
|
@ -1,29 +1,22 @@ |
||||
{ stdenv, fetchFromGitHub, ocaml, findlib, dune }: |
||||
{ stdenv, fetchFromGitHub, buildDunePackage }: |
||||
|
||||
if !stdenv.lib.versionAtLeast ocaml.version "4.02" |
||||
then throw "ppx_derivers is not available for OCaml ${ocaml.version}" |
||||
else |
||||
|
||||
stdenv.mkDerivation rec { |
||||
name = "ocaml${ocaml.version}-ppx_derivers-${version}"; |
||||
buildDunePackage rec { |
||||
pname = "ppx_derivers"; |
||||
version = "1.2"; |
||||
|
||||
minimumOCamlVersion = "4.02"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "diml"; |
||||
repo = "ppx_derivers"; |
||||
repo = pname; |
||||
rev = version; |
||||
sha256 = "0bnhihl1w31as5w2czly1v3d6pbir9inmgsjg2cj6aaj9v1dzd85"; |
||||
}; |
||||
|
||||
buildInputs = [ ocaml findlib dune ]; |
||||
|
||||
inherit (dune) installPhase; |
||||
|
||||
meta = { |
||||
description = "Shared [@@deriving] plugin registry"; |
||||
license = stdenv.lib.licenses.bsd3; |
||||
maintainers = [ stdenv.lib.maintainers.vbgl ]; |
||||
inherit (src.meta) homepage; |
||||
inherit (ocaml.meta) platforms; |
||||
}; |
||||
} |
||||
|
@ -1,34 +1,26 @@ |
||||
{ stdenv, fetchFromGitHub, ocaml, findlib, dune |
||||
{ stdenv, fetchFromGitHub, buildDunePackage |
||||
, ocaml-compiler-libs, ocaml-migrate-parsetree, ppx_derivers, stdio |
||||
}: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
buildDunePackage rec { |
||||
pname = "ppxlib"; |
||||
version = "0.3.1"; |
||||
name = "ocaml${ocaml.version}-ppxlib-${version}"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "ocaml-ppx"; |
||||
repo = "ppxlib"; |
||||
repo = pname; |
||||
rev = version; |
||||
sha256 = "0qpjl84x8abq9zivifb0k8ld7fa1lrhkbajmmccvfv06ja3as1v4"; |
||||
}; |
||||
|
||||
buildInputs = [ ocaml findlib dune ]; |
||||
|
||||
propagatedBuildInputs = [ |
||||
ocaml-compiler-libs ocaml-migrate-parsetree ppx_derivers stdio |
||||
]; |
||||
|
||||
buildPhase = "dune build"; |
||||
|
||||
inherit (dune) installPhase; |
||||
|
||||
meta = { |
||||
description = "Comprehensive ppx tool set"; |
||||
license = stdenv.lib.licenses.mit; |
||||
maintainers = [ stdenv.lib.maintainers.vbgl ]; |
||||
inherit (src.meta) homepage; |
||||
inherit (ocaml.meta) platforms; |
||||
}; |
||||
|
||||
} |
||||
|
@ -1,32 +1,24 @@ |
||||
{ stdenv, fetchurl, ocaml, findlib, dune, ocaml_lwt |
||||
{ stdenv, fetchurl, buildDunePackage, ocaml_lwt |
||||
, lwt_ppx, ocaml-migrate-parsetree, ppx_tools_versioned, csv, ocaml_sqlite3 |
||||
}: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
buildDunePackage rec { |
||||
pname = "sqlexpr"; |
||||
version = "0.9.0"; |
||||
name = "ocaml${ocaml.version}-sqlexpr-${version}"; |
||||
|
||||
src = fetchurl { |
||||
url = "https://github.com/mfp/ocaml-sqlexpr/releases/download/${version}/ocaml-sqlexpr-${version}.tar.gz"; |
||||
sha256 = "0z0bkzi1mh0m39alzr2ds7hjpfxffx6azpfsj2wpaxrg64ks8ypd"; |
||||
}; |
||||
|
||||
buildInputs = [ ocaml findlib dune lwt_ppx ocaml-migrate-parsetree ppx_tools_versioned ]; |
||||
|
||||
buildInputs = [ lwt_ppx ocaml-migrate-parsetree ppx_tools_versioned ]; |
||||
propagatedBuildInputs = [ ocaml_lwt csv ocaml_sqlite3 ]; |
||||
|
||||
buildPhase = "dune build -p sqlexpr"; |
||||
|
||||
doCheck = true; |
||||
checkPhase = "dune runtest -p sqlexpr"; |
||||
|
||||
inherit (dune) installPhase; |
||||
|
||||
meta = { |
||||
description = "Type-safe, convenient SQLite database access"; |
||||
homepage = "https://github.com/mfp/ocaml-sqlexpr"; |
||||
license = stdenv.lib.licenses.lgpl21; |
||||
maintainers = [ stdenv.lib.maintainers.vbgl ]; |
||||
inherit (ocaml.meta) platforms; |
||||
}; |
||||
} |
||||
|
@ -1,15 +1,11 @@ |
||||
{ stdenv, ocaml, findlib, dune, sqlexpr, ounit |
||||
{ stdenv, buildDunePackage, sqlexpr, ounit |
||||
, ppx_core, ppx_tools_versioned, re, lwt_ppx |
||||
}: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
name = "ocaml${ocaml.version}-ppx_sqlexpr-${version}"; |
||||
inherit (sqlexpr) version src installPhase meta; |
||||
|
||||
buildInputs = [ ocaml findlib dune sqlexpr ounit ppx_core ppx_tools_versioned re lwt_ppx ]; |
||||
|
||||
buildPhase = "dune build -p ppx_sqlexpr"; |
||||
buildDunePackage { |
||||
pname = "ppx_sqlexpr"; |
||||
inherit (sqlexpr) version src meta; |
||||
|
||||
buildInputs = [ sqlexpr ounit ppx_core ppx_tools_versioned re lwt_ppx ]; |
||||
doCheck = true; |
||||
checkPhase = "dune runtest -p ppx_sqlexpr"; |
||||
} |
||||
|
@ -1,33 +1,26 @@ |
||||
{ stdenv, fetchurl, ocaml, findlib, dune, ppx_sexp_conv, ounit |
||||
{ stdenv, fetchurl, buildDunePackage, ppx_sexp_conv, ounit |
||||
, re, sexplib, stringext |
||||
}: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
buildDunePackage rec { |
||||
pname = "uri"; |
||||
version = "1.9.6"; |
||||
name = "ocaml${ocaml.version}-uri-${version}"; |
||||
|
||||
src = fetchurl { |
||||
url = "https://github.com/mirage/ocaml-uri/releases/download/v${version}/uri-${version}.tbz"; |
||||
url = "https://github.com/mirage/ocaml-${pname}/releases/download/v${version}/${pname}-${version}.tbz"; |
||||
sha256 = "1m845rwd70wi4iijkrigyz939m1x84ba70hvv0d9sgk6971w4kz0"; |
||||
}; |
||||
|
||||
unpackCmd = "tar -xjf $curSrc"; |
||||
|
||||
buildInputs = [ ocaml findlib dune ounit ]; |
||||
buildInputs = [ ounit ]; |
||||
propagatedBuildInputs = [ ppx_sexp_conv re sexplib stringext ]; |
||||
|
||||
buildPhase = "jbuilder build"; |
||||
|
||||
doCheck = true; |
||||
checkPhase = "jbuilder runtest"; |
||||
|
||||
inherit (dune) installPhase; |
||||
|
||||
meta = { |
||||
homepage = "https://github.com/mirage/ocaml-uri"; |
||||
description = "RFC3986 URI parsing library for OCaml"; |
||||
license = stdenv.lib.licenses.isc; |
||||
maintainers = [ stdenv.lib.maintainers.vbgl ]; |
||||
inherit (ocaml.meta) platforms; |
||||
}; |
||||
} |
||||
|
@ -1,12 +1,8 @@ |
||||
{ stdenv, ocaml, findlib, dune, zmq, ocaml_lwt }: |
||||
{ stdenv, buildDunePackage, zmq, ocaml_lwt }: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
name = "ocaml${ocaml.version}-zmq-lwt-${version}"; |
||||
inherit (zmq) version src installPhase meta; |
||||
|
||||
buildInputs = [ ocaml findlib dune ]; |
||||
buildDunePackage rec { |
||||
pname = "zmq-lwt"; |
||||
inherit (zmq) version src meta; |
||||
|
||||
propagatedBuildInputs = [ zmq ocaml_lwt ]; |
||||
|
||||
buildPhase = "dune build -p zmq-lwt"; |
||||
} |
||||
|
@ -1,33 +1,25 @@ |
||||
{ stdenv, fetchzip, ncurses |
||||
, ocamlPackages |
||||
, dune |
||||
}: |
||||
{ stdenv, fetchzip, ncurses, ocamlPackages }: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
with ocamlPackages; buildDunePackage rec { |
||||
pname = "ocaml-top"; |
||||
version = "1.1.5"; |
||||
name = "ocaml-top-${version}"; |
||||
|
||||
src = fetchzip { |
||||
url = "https://github.com/OCamlPro/ocaml-top/archive/${version}.tar.gz"; |
||||
sha256 = "1d4i6aanrafgrgk4mh154k6lkwk0b6mh66rykz33awlf5pfqd8yv"; |
||||
}; |
||||
|
||||
buildInputs = [ ncurses dune ] |
||||
++ (with ocamlPackages; [ ocaml ocp-build findlib lablgtk ocp-index ]); |
||||
buildInputs = [ ncurses ocp-build lablgtk ocp-index ]; |
||||
|
||||
configurePhase = '' |
||||
export TERM=xterm |
||||
ocp-build -init |
||||
''; |
||||
|
||||
buildPhase = "jbuilder build"; |
||||
|
||||
inherit (dune) installPhase; |
||||
|
||||
meta = { |
||||
homepage = https://www.typerex.org/ocaml-top.html; |
||||
license = stdenv.lib.licenses.gpl3; |
||||
description = "A simple cross-platform OCaml code editor built for top-level evaluation"; |
||||
platforms = ocamlPackages.ocaml.meta.platforms or []; |
||||
maintainers = with stdenv.lib.maintainers; [ vbgl ]; |
||||
}; |
||||
} |
||||
|
Loading…
Reference in new issue