summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules/curses/default.nix
blob: fc16e9ac7f1f5282c6ce89ce95c802e55150d9bb (plain)
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
30
31
32
33
34
35
{
  lib,
  buildDunePackage,
  fetchFromGitHub,
  ncurses,
  dune-configurator,
  pkg-config,
}:

buildDunePackage (finalAttrs: {
  pname = "curses";
  version = "1.0.11";

  minimalOCamlVersion = "4.06";

  src = fetchFromGitHub {
    owner = "mbacarella";
    repo = "curses";
    rev = finalAttrs.version;
    hash = "sha256-tjBOv7RARDzBShToNLL9LEaU/Syo95MfwZunFsyN4/Q=";
  };

  nativeBuildInputs = [ pkg-config ];
  buildInputs = [ dune-configurator ];

  propagatedBuildInputs = [ ncurses ];

  meta = {
    description = "OCaml Bindings to curses/ncurses";
    homepage = "https://github.com/mbacarella/curses";
    license = lib.licenses.lgpl21Plus;
    changelog = "https://github.com/mbacarella/curses/raw/${finalAttrs.version}/CHANGES";
    maintainers = [ lib.maintainers.vbgl ];
  };
})