2020-08-28 23:05:46 +02:00
|
|
|
{ stdenv, lib, fetchzip, buildDunePackage, camlp5
|
2020-08-27 13:49:45 +02:00
|
|
|
, ppxlib, ppx_deriving, re, perl, ncurses
|
2020-08-28 23:05:46 +02:00
|
|
|
, version ? "1.12.0"
|
2018-09-20 07:45:31 +02:00
|
|
|
}:
|
2020-08-28 23:05:46 +02:00
|
|
|
with lib;
|
|
|
|
let fetched = import ../../../build-support/coq/meta-fetch/default.nix
|
2021-01-27 11:21:31 +01:00
|
|
|
{inherit lib stdenv fetchzip; } ({
|
2020-08-28 23:05:46 +02:00
|
|
|
release."1.12.0".sha256 = "1agisdnaq9wrw3r73xz14yrq3wx742i6j8i5icjagqk0ypmly2is";
|
|
|
|
release."1.11.4".sha256 = "1m0jk9swcs3jcrw5yyw5343v8mgax238cjb03s8gc4wipw1fn9f5";
|
|
|
|
releaseRev = v: "v${v}";
|
|
|
|
location = { domain = "github.com"; owner = "LPCIC"; repo = "elpi"; };
|
|
|
|
}) version;
|
|
|
|
in
|
2019-06-23 21:53:51 +02:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "elpi";
|
2020-08-28 23:05:46 +02:00
|
|
|
inherit (fetched) version src;
|
2018-09-20 07:45:31 +02:00
|
|
|
|
2019-06-23 21:53:51 +02:00
|
|
|
minimumOCamlVersion = "4.04";
|
2018-09-20 07:45:31 +02:00
|
|
|
|
2021-01-31 14:15:46 +01:00
|
|
|
buildInputs = [ perl ncurses ];
|
2018-09-20 07:45:31 +02:00
|
|
|
|
2021-01-31 14:15:46 +01:00
|
|
|
propagatedBuildInputs = [ camlp5 ppxlib ppx_deriving re ];
|
2018-09-20 07:45:31 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Embeddable λProlog Interpreter";
|
2020-08-28 23:05:46 +02:00
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = [ maintainers.vbgl ];
|
2020-06-04 10:25:19 +02:00
|
|
|
homepage = "https://github.com/LPCIC/elpi";
|
2018-09-20 07:45:31 +02:00
|
|
|
};
|
2020-06-04 10:25:19 +02:00
|
|
|
|
2020-08-27 13:49:45 +02:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace elpi_REPL.ml --replace "tput cols" "${ncurses}/bin/tput cols"
|
|
|
|
'';
|
|
|
|
|
2020-06-04 10:25:19 +02:00
|
|
|
useDune2 = true;
|
2018-09-20 07:45:31 +02:00
|
|
|
}
|