https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
14 lines
284 B
Nix
14 lines
284 B
Nix
{ buildDunePackage, logs, ocaml_lwt, metrics }:
|
|
|
|
buildDunePackage {
|
|
pname = "metrics-lwt";
|
|
|
|
inherit (metrics) version useDune2 src;
|
|
|
|
propagatedBuildInputs = [ logs ocaml_lwt metrics ];
|
|
|
|
meta = metrics.meta // {
|
|
description = "Lwt backend for the Metrics library";
|
|
};
|
|
|
|
}
|