2019-09-03 21:35:45 +02: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 14:11:24 +01:00
|
|
|
meta = {
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
homepage = "https://github.com/janestreet/${pname}";
|
|
|
|
} // args.meta;
|
2019-09-03 21:35:45 +02:00
|
|
|
})
|