2021-01-11 14:14:57 +01:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, defaultVersion ? "0.11.0" }:
|
2017-05-10 11:20:47 +02:00
|
|
|
|
2018-11-05 11:21:46 +01:00
|
|
|
{ pname, version ? defaultVersion, hash, ...}@args:
|
2017-05-10 11:20:47 +02:00
|
|
|
|
2018-11-05 11:21:46 +01:00
|
|
|
buildDunePackage (args // {
|
2017-05-10 11:20:47 +02:00
|
|
|
inherit version;
|
|
|
|
|
2018-11-05 11:21:46 +01:00
|
|
|
minimumOCamlVersion = "4.04";
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
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
|
|
|
})
|