summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/elpi/default.nix24
1 files changed, 14 insertions, 10 deletions
diff --git a/pkgs/development/ocaml-modules/elpi/default.nix b/pkgs/development/ocaml-modules/elpi/default.nix
index 865c5448c5bd..6f0d355fed5b 100644
--- a/pkgs/development/ocaml-modules/elpi/default.nix
+++ b/pkgs/development/ocaml-modules/elpi/default.nix
@@ -1,15 +1,19 @@
-{ lib, fetchzip, buildDunePackage, camlp5
+{ stdenv, lib, fetchzip, buildDunePackage, camlp5
, ppxlib, ppx_deriving, re, perl, ncurses
+, version ? "1.12.0"
}:
-
+with lib;
+let fetched = import ../../../build-support/coq/meta-fetch/default.nix
+ {inherit stdenv fetchzip; } ({
+ 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
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";
- };
+ inherit (fetched) version src;
minimumOCamlVersion = "4.04";
@@ -19,8 +23,8 @@ buildDunePackage rec {
meta = {
description = "Embeddable λProlog Interpreter";
- license = lib.licenses.lgpl21Plus;
- maintainers = [ lib.maintainers.vbgl ];
+ license = licenses.lgpl21Plus;
+ maintainers = [ maintainers.vbgl ];
homepage = "https://github.com/LPCIC/elpi";
};