3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/ocaml-modules/elpi/default.nix

40 lines
1.3 KiB
Nix
Raw Normal View History

2020-08-28 22:05:46 +01:00
{ stdenv, lib, fetchzip, buildDunePackage, camlp5
, ppxlib, ppx_deriving, re, perl, ncurses
2021-05-25 09:39:13 +01:00
, version ? "1.13.5"
2018-09-20 06:45:31 +01:00
}:
2020-08-28 22:05:46 +01:00
with lib;
let fetched = import ../../../build-support/coq/meta-fetch/default.nix
{inherit lib stdenv fetchzip; } ({
2021-05-25 09:39:13 +01:00
release."1.13.5".sha256 = "02a6r23mximrdvs6kgv6rp0r2dgk7zynbs99nn7lphw2c4189kka";
2021-04-15 16:43:59 +01:00
release."1.13.1".sha256 = "12a9nbdvg9gybpw63lx3nw5wnxfznpraprb0wj3l68v1w43xq044";
2021-02-18 19:45:45 +00:00
release."1.13.0".sha256 = "0dmzy058m1mkndv90byjaik6lzzfk3aaac7v84mpmkv6my23bygr";
2020-08-28 22:05:46 +01: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 20:53:51 +01:00
buildDunePackage rec {
pname = "elpi";
2020-08-28 22:05:46 +01:00
inherit (fetched) version src;
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 ];
2018-09-20 06:45:31 +01:00
propagatedBuildInputs = [ camlp5 ppxlib ppx_deriving re ];
2018-09-20 06:45:31 +01:00
meta = {
description = "Embeddable λProlog Interpreter";
2020-08-28 22:05:46 +01:00
license = licenses.lgpl21Plus;
maintainers = [ 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
}