2022-05-23 05:18:37 +00:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, defaultVersion ? "0.15.0" }:
|
|
|
|
|
|
|
|
{ pname
|
|
|
|
, version ? defaultVersion
|
|
|
|
, hash
|
|
|
|
, minimumOCamlVersion ? "4.11"
|
|
|
|
, doCheck ? true
|
|
|
|
, buildInputs ? []
|
|
|
|
, ...}@args:
|
|
|
|
|
|
|
|
buildDunePackage (args // {
|
|
|
|
useDune2 = true;
|
2023-01-25 15:24:28 +00:00
|
|
|
inherit version buildInputs;
|
2022-05-23 05:18:37 +00:00
|
|
|
|
|
|
|
inherit minimumOCamlVersion;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "janestreet";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = hash;
|
|
|
|
};
|
|
|
|
|
|
|
|
inherit doCheck;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
homepage = "https://github.com/janestreet/${pname}";
|
|
|
|
} // args.meta;
|
|
|
|
})
|