2019-09-03 20:35:45 +01:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, defaultVersion ? "0.12.0" }:
|
|
|
|
|
|
|
|
{ pname, version ? defaultVersion, hash, ...}@args:
|
|
|
|
|
|
|
|
buildDunePackage (args // {
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
minimumOCamlVersion = "4.07";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "janestreet";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = hash;
|
|
|
|
};
|
|
|
|
|
2021-02-19 13:11:24 +00:00
|
|
|
meta = {
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
homepage = "https://github.com/janestreet/${pname}";
|
|
|
|
} // args.meta;
|
2019-09-03 20:35:45 +01:00
|
|
|
})
|