c7e6337bd0
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
23 lines
501 B
Nix
23 lines
501 B
Nix
{ lib, fetchFromGitHub, buildDunePackage, defaultVersion ? "0.11.0" }:
|
|
|
|
{ pname, version ? defaultVersion, hash, buildInputs ? [], ...}@args:
|
|
|
|
buildDunePackage (args // {
|
|
inherit version buildInputs;
|
|
|
|
duneVersion = "1";
|
|
|
|
minimalOCamlVersion = "4.04";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "janestreet";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = hash;
|
|
};
|
|
|
|
meta = {
|
|
license = lib.licenses.asl20;
|
|
homepage = "https://github.com/janestreet/${pname}";
|
|
} // args.meta;
|
|
})
|