2018-11-05 11:21:46 +01:00
|
|
|
{ stdenv, 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;
|
|
|
|
};
|
|
|
|
|
2018-11-05 11:21:46 +01:00
|
|
|
meta.license = stdenv.lib.licenses.asl20;
|
|
|
|
meta.homepage = "https://github.com/janestreet/${pname}";
|
2017-05-10 11:20:47 +02:00
|
|
|
})
|