nixpkgs/pkgs/development/ocaml-modules/elpi/default.nix

33 lines
804 B
Nix
Raw Normal View History

{ lib, fetchzip, buildDunePackage, camlp5
, ppxlib, ppx_deriving, re, perl, ncurses
2018-09-20 06:45:31 +01:00
}:
2019-06-23 20:53:51 +01:00
buildDunePackage rec {
pname = "elpi";
version = "1.11.4";
2019-05-07 10:31:57 +01:00
src = fetchzip {
url = "https://github.com/LPCIC/elpi/releases/download/v${version}/elpi-v${version}.tbz";
sha256 = "1hmjp2z52j17vwhhdkj45n9jx11jxkdg2dwa0n04yyw0qqy4m7c1";
};
2018-09-20 06:45:31 +01:00
2019-06-23 20:53:51 +01:00
minimumOCamlVersion = "4.04";
2018-09-20 06:45:31 +01:00
buildInputs = [ perl ncurses ppxlib ];
2018-09-20 06:45:31 +01:00
2019-06-23 20:53:51 +01:00
propagatedBuildInputs = [ camlp5 ppx_deriving re ];
2018-09-20 06:45:31 +01:00
meta = {
description = "Embeddable λProlog Interpreter";
2019-06-23 20:53:51 +01:00
license = lib.licenses.lgpl21Plus;
maintainers = [ lib.maintainers.vbgl ];
homepage = "https://github.com/LPCIC/elpi";
2018-09-20 06:45:31 +01:00
};
postPatch = ''
substituteInPlace elpi_REPL.ml --replace "tput cols" "${ncurses}/bin/tput cols"
'';
useDune2 = true;
2018-09-20 06:45:31 +01:00
}