2022-05-23 05:18:37 +00:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, defaultVersion ? "0.15.0" }:
|
|
|
|
|
|
|
|
{ pname
|
|
|
|
, version ? defaultVersion
|
|
|
|
, hash
|
2023-05-02 04:08:57 +00:00
|
|
|
, minimalOCamlVersion ? "4.11"
|
2022-05-23 05:18:37 +00:00
|
|
|
, doCheck ? true
|
|
|
|
, buildInputs ? []
|
|
|
|
, ...}@args:
|
|
|
|
|
|
|
|
buildDunePackage (args // {
|
2023-05-02 04:08:57 +00:00
|
|
|
duneVersion = "3";
|
2023-01-25 15:24:28 +00:00
|
|
|
inherit version buildInputs;
|
2022-05-23 05:18:37 +00:00
|
|
|
|
2023-05-02 04:08:57 +00:00
|
|
|
inherit minimalOCamlVersion;
|
2022-05-23 05:18:37 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
})
|