1{
2 lib,
3 buildDunePackage,
4 fetchFromGitHub,
5 ncurses,
6 dune-configurator,
7 pkg-config,
8}:
9
10buildDunePackage rec {
11 pname = "curses";
12 version = "1.0.11";
13
14 minimalOCamlVersion = "4.06";
15
16 src = fetchFromGitHub {
17 owner = "mbacarella";
18 repo = "curses";
19 rev = version;
20 hash = "sha256-tjBOv7RARDzBShToNLL9LEaU/Syo95MfwZunFsyN4/Q=";
21 };
22
23 nativeBuildInputs = [ pkg-config ];
24 buildInputs = [ dune-configurator ];
25
26 propagatedBuildInputs = [ ncurses ];
27
28 meta = {
29 description = "OCaml Bindings to curses/ncurses";
30 homepage = "https://github.com/mbacarella/curses";
31 license = lib.licenses.lgpl21Plus;
32 changelog = "https://github.com/mbacarella/curses/raw/${version}/CHANGES";
33 maintainers = [ lib.maintainers.vbgl ];
34 };
35}