My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nomicon/pkgs/development/ocaml-modules/elpi/default.nix

33 lines
804 B

{ lib, fetchzip, buildDunePackage, camlp5
, ppxlib, ppx_deriving, re, perl, ncurses
}:
buildDunePackage rec {
pname = "elpi";
version = "1.11.4";
src = fetchzip {
url = "https://github.com/LPCIC/elpi/releases/download/v${version}/elpi-v${version}.tbz";
sha256 = "1hmjp2z52j17vwhhdkj45n9jx11jxkdg2dwa0n04yyw0qqy4m7c1";
};
minimumOCamlVersion = "4.04";
buildInputs = [ perl ncurses ppxlib ];
propagatedBuildInputs = [ camlp5 ppx_deriving re ];
meta = {
description = "Embeddable λProlog Interpreter";
license = lib.licenses.lgpl21Plus;
maintainers = [ lib.maintainers.vbgl ];
homepage = "https://github.com/LPCIC/elpi";
};
postPatch = ''
substituteInPlace elpi_REPL.ml --replace "tput cols" "${ncurses}/bin/tput cols"
'';
useDune2 = true;
}