2020-12-08 21:50:14 +01:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, defaultVersion ? "0.14.0" }:
|
2020-04-13 10:41:51 +02:00
|
|
|
|
2020-12-08 21:50:14 +01:00
|
|
|
{ pname
|
|
|
|
, version ? defaultVersion
|
|
|
|
, hash
|
|
|
|
, minimumOCamlVersion ? "4.08"
|
|
|
|
, doCheck ? true
|
|
|
|
, ...}@args:
|
2020-04-13 10:41:51 +02:00
|
|
|
|
|
|
|
buildDunePackage (args // {
|
2020-12-08 21:50:14 +01:00
|
|
|
useDune2 = true;
|
2020-04-13 10:41:51 +02:00
|
|
|
inherit version;
|
|
|
|
|
2020-12-08 21:50:14 +01:00
|
|
|
inherit minimumOCamlVersion;
|
2020-04-13 10:41:51 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "janestreet";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = hash;
|
|
|
|
};
|
|
|
|
|
2020-12-08 21:50:14 +01:00
|
|
|
inherit doCheck;
|
|
|
|
|
2020-04-13 10:41:51 +02:00
|
|
|
meta.license = lib.licenses.mit;
|
|
|
|
meta.homepage = "https://github.com/janestreet/${pname}";
|
|
|
|
})
|