4f6ddfdd23
- ocamlPackages.tls*: 0.15.2 -> 0.15.3 - ocamlPackages.bistro: unstable-2021-11-13 -> unstable-2022-05-07 - ocamlPackages.phylogenetics: 0.1.0 -> unstable-2022-05-06
31 lines
598 B
Nix
31 lines
598 B
Nix
{ lib, fetchFromGitHub, buildDunePackage, defaultVersion ? "0.15.0" }:
|
|
|
|
{ pname
|
|
, version ? defaultVersion
|
|
, hash
|
|
, minimumOCamlVersion ? "4.11"
|
|
, doCheck ? true
|
|
, buildInputs ? []
|
|
, strictDeps ? true
|
|
, ...}@args:
|
|
|
|
buildDunePackage (args // {
|
|
useDune2 = true;
|
|
inherit version buildInputs strictDeps;
|
|
|
|
inherit minimumOCamlVersion;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "janestreet";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = hash;
|
|
};
|
|
|
|
inherit doCheck;
|
|
|
|
meta = {
|
|
license = lib.licenses.mit;
|
|
homepage = "https://github.com/janestreet/${pname}";
|
|
} // args.meta;
|
|
})
|