2018-11-05 10:21:46 +00:00
|
|
|
{ stdenv, fetchFromGitHub, buildDunePackage, defaultVersion ? "0.11.0" }:
|
2017-05-10 09:20:47 +00:00
|
|
|
|
2018-11-05 10:21:46 +00:00
|
|
|
{ pname, version ? defaultVersion, hash, ...}@args:
|
2017-05-10 09:20:47 +00:00
|
|
|
|
2018-11-05 10:21:46 +00:00
|
|
|
buildDunePackage (args // {
|
2017-05-10 09:20:47 +00:00
|
|
|
inherit version;
|
|
|
|
|
2018-11-05 10:21:46 +00:00
|
|
|
minimumOCamlVersion = "4.04";
|
|
|
|
|
2017-05-10 09:20:47 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "janestreet";
|
2018-11-05 10:21:46 +00:00
|
|
|
repo = pname;
|
2017-05-10 09:20:47 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = hash;
|
|
|
|
};
|
|
|
|
|
2018-11-05 10:21:46 +00:00
|
|
|
meta.license = stdenv.lib.licenses.asl20;
|
|
|
|
meta.homepage = "https://github.com/janestreet/${pname}";
|
2017-05-10 09:20:47 +00:00
|
|
|
})
|