fluffychat: 1.22.1 -> 1.23.0 (#364091)
[NixPkgs.git] / pkgs / development / ocaml-modules / readline / default.nix
blob4efafe2f4e3201eb1ac62402c187aa43ac9dbf13
2   lib,
3   buildDunePackage,
4   fetchFromGitLab,
5   readline,
6 }:
8 buildDunePackage {
9   pname = "readline";
10   version = "0.1";
12   minimalOCamlVersion = "4.14";
14   src = fetchFromGitLab {
15     domain = "gitlab.inria.fr";
16     owner = "vtourneu";
17     repo = "readline-ocaml";
18     rev = "b3f84c8a006439142884d3e0df51b395d963f9fe";
19     hash = "sha256-h4kGbzwM88rPGj/KkHKgGyfyvkAYHP83ZY1INZzTaIE=";
20   };
22   patches = [ ./dune.patch ];
24   preConfigure = ''
25     echo "(${lib.getOutput "dev" readline}/include)" > src/iflags.sexp
26     echo "(-L${lib.getOutput "lib" readline}/lib -lreadline)" > src/lflags.sexp
27   '';
29   propagatedBuildInputs = [ readline ];
31   meta = {
32     description = "OCaml bindings for GNU Readline";
33     homepage = "https://vtourneu.gitlabpages.inria.fr/readline-ocaml/readline/index.html";
34     license = lib.licenses.cecill20;
35     maintainers = [ lib.maintainers.vbgl ];
36   };