blob: e7120ad385727fda22cc5ea48a7fd3dc431511e5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
{ stdenv, fetchFromGitHub, ocaml, dune, findlib, 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}";
version = "1.1.0";
src = fetchFromGitHub {
owner = "fxfactorial";
repo = "ocaml-linenoise";
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;
};
}
|