2019-09-03 21:35:45 +02:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, defaultVersion ? "0.12.0" }:
|
|
|
|
|
2024-04-10 06:39:38 +02:00
|
|
|
{ pname, version ? defaultVersion, duneVersion ? "3", hash, ...}@args:
|
2019-09-03 21:35:45 +02:00
|
|
|
|
|
|
|
buildDunePackage (args // {
|
2024-04-08 11:28:34 +02:00
|
|
|
inherit version duneVersion;
|
2022-03-13 15:39:14 +01:00
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
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
|
|
|
})
|