2021-01-15 22:18:51 +00:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, defaultVersion ? "0.11.0" }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
{ pname, version ? defaultVersion, hash, buildInputs ? [], ...}@args:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage (args // {
|
2022-03-05 16:20:37 +00:00
|
|
|
inherit version buildInputs;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
useDune2 = false;
|
|
|
|
|
|
|
|
minimalOCamlVersion = "4.04";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "janestreet";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = hash;
|
|
|
|
};
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2021-03-12 07:09:13 +00:00
|
|
|
meta = {
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
homepage = "https://github.com/janestreet/${pname}";
|
|
|
|
} // args.meta;
|
2020-04-24 23:36:52 +00:00
|
|
|
})
|