2019-09-03 21:35:45 +02:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, defaultVersion ? "0.12.0" }:
|
|
|
|
|
2022-03-03 15:16:56 +01:00
|
|
|
{ pname, version ? defaultVersion, hash, ...}@args:
|
2019-09-03 21:35:45 +02:00
|
|
|
|
|
|
|
buildDunePackage (args // {
|
2022-03-03 15:16:56 +01:00
|
|
|
inherit version;
|
2019-09-03 21:35:45 +02:00
|
|
|
|
2022-03-13 15:39:14 +01:00
|
|
|
useDune2 = false;
|
|
|
|
|
2022-03-03 15:16:56 +01:00
|
|
|
minimalOCamlVersion = "4.07";
|
2022-02-22 10:59:04 +01:00
|
|
|
|
2019-09-03 21:35:45 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "janestreet";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = hash;
|
|
|
|
};
|
|
|
|
|
2022-02-22 10:59:04 +01:00
|
|
|
strictDeps = true;
|
|
|
|
|
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
|
|
|
})
|