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