depot/pkgs/development/ocaml-modules/readline/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

34 lines
880 B
Nix

{ lib, buildDunePackage, fetchFromGitLab
, readline
}:
buildDunePackage {
pname = "readline";
version = "0.1";
minimalOCamlVersion = "4.14";
src = fetchFromGitLab {
domain = "gitlab.inria.fr";
owner = "vtourneu";
repo = "readline-ocaml";
rev = "b3f84c8a006439142884d3e0df51b395d963f9fe";
hash = "sha256-h4kGbzwM88rPGj/KkHKgGyfyvkAYHP83ZY1INZzTaIE=";
};
patches = [ ./dune.patch ];
preConfigure = ''
echo "(${lib.getOutput "dev" readline}/include)" > src/iflags.sexp
echo "(-L${lib.getOutput "lib" readline}/lib -lreadline)" > src/lflags.sexp
'';
propagatedBuildInputs = [ readline ];
meta = {
description = "OCaml bindings for GNU Readline";
homepage = "https://vtourneu.gitlabpages.inria.fr/readline-ocaml/readline/index.html";
license = lib.licenses.cecill20;
maintainers = [ lib.maintainers.vbgl ];
};
}