mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
elpi: release 1.4.1
This commit is contained in:
parent
a07d045b00
commit
7e90540d13
1 changed files with 10 additions and 22 deletions
|
@ -1,40 +1,28 @@
|
|||
{ stdenv, fetchFromGitHub, ocaml, findlib, camlp5
|
||||
{ lib, fetchFromGitHub, buildDunePackage, camlp5
|
||||
, ppx_tools_versioned, ppx_deriving, re
|
||||
}:
|
||||
|
||||
if !stdenv.lib.versionAtLeast ocaml.version "4.03"
|
||||
then throw "elpi is not available for OCaml ${ocaml.version}"
|
||||
else
|
||||
buildDunePackage rec {
|
||||
pname = "elpi";
|
||||
version = "1.4.1";
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "ocaml${ocaml.version}-elpi-${version}";
|
||||
version = "1.2.0";
|
||||
src = fetchFromGitHub {
|
||||
owner = "LPCIC";
|
||||
repo = "elpi";
|
||||
rev = "v${version}";
|
||||
sha256 = "1n4jpidx0vk4y66bhd704ajn8n6f1fd5wsi1shj6wijfmjl14h7s";
|
||||
sha256 = "0sj2jbimg3jqwz4bsfcdqbrh45bb1dbgxj5g234pg1xjy9kxzl2w";
|
||||
};
|
||||
|
||||
buildInputs = [ ocaml findlib ppx_tools_versioned ];
|
||||
minimumOCamlVersion = "4.04";
|
||||
|
||||
buildInputs = [ ppx_tools_versioned ];
|
||||
|
||||
propagatedBuildInputs = [ camlp5 ppx_deriving re ];
|
||||
|
||||
createFindlibDestdir = true;
|
||||
|
||||
preInstall = "make byte";
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/bin
|
||||
make install-bin BIN=$out/bin
|
||||
make install-bin BYTE=1 BIN=$out/bin
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Embeddable λProlog Interpreter";
|
||||
license = stdenv.lib.licenses.lgpl21Plus;
|
||||
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
||||
license = lib.licenses.lgpl21Plus;
|
||||
maintainers = [ lib.maintainers.vbgl ];
|
||||
inherit (src.meta) homepage;
|
||||
inherit (ocaml.meta) platforms;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue