2021-01-11 14:14:57 +01:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, defaultVersion ? "0.11.0" }:
|
2017-05-10 11:20:47 +02:00
|
|
|
|
2022-02-22 10:59:04 +01:00
|
|
|
{ pname, version ? defaultVersion, hash, buildInputs ? [], ...}@args:
|
2017-05-10 11:20:47 +02:00
|
|
|
|
2018-11-05 11:21:46 +01:00
|
|
|
buildDunePackage (args // {
|
2022-02-22 10:59:04 +01:00
|
|
|
inherit version buildInputs;
|
2017-05-10 11:20:47 +02:00
|
|
|
|
2022-03-13 15:39:14 +01:00
|
|
|
useDune2 = false;
|
|
|
|
|
|
|
|
minimalOCamlVersion = "4.04";
|
2018-11-05 11:21:46 +01:00
|
|
|
|
2017-05-10 11:20:47 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "janestreet";
|
2018-11-05 11:21:46 +01:00
|
|
|
repo = pname;
|
2017-05-10 11:20:47 +02:00
|
|
|
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.asl20;
|
|
|
|
homepage = "https://github.com/janestreet/${pname}";
|
|
|
|
} // args.meta;
|
2017-05-10 11:20:47 +02:00
|
|
|
})
|