8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
19 lines
436 B
Nix
19 lines
436 B
Nix
{ stdenv, fetchFromGitHub, buildDunePackage, defaultVersion ? "0.11.0" }:
|
|
|
|
{ pname, version ? defaultVersion, hash, ...}@args:
|
|
|
|
buildDunePackage (args // {
|
|
inherit version;
|
|
|
|
minimumOCamlVersion = "4.04";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "janestreet";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = hash;
|
|
};
|
|
|
|
meta.license = stdenv.lib.licenses.asl20;
|
|
meta.homepage = "https://github.com/janestreet/${pname}";
|
|
})
|