Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 75b59386b471
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: bcd196ca6991
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Nov 6, 2020

  1. ocamlPackages.mirage-logs: init at 1.2.0

    vbgl authored and ehmry committed Nov 6, 2020
    Copy the full SHA
    bcd196c View commit details
Showing with 30 additions and 0 deletions.
  1. +28 −0 pkgs/development/ocaml-modules/mirage-logs/default.nix
  2. +2 −0 pkgs/top-level/ocaml-packages.nix
28 changes: 28 additions & 0 deletions pkgs/development/ocaml-modules/mirage-logs/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{ lib, fetchurl, buildDunePackage
, logs, lwt, mirage-clock, mirage-profile, ptime
, alcotest
}:

buildDunePackage rec {
pname = "mirage-logs";
version = "1.2.0";

useDune2 = true;

src = fetchurl {
url = "https://github.com/mirage/mirage-logs/releases/download/v${version}/mirage-logs-v${version}.tbz";
sha256 = "0h0amzjxy067jljscib7fvw5q8k0adqa8m86affha9hq5jsh07a1";
};

propagatedBuildInputs = [ logs lwt mirage-clock mirage-profile ptime ];

doCheck = true;
checkInputs = [ alcotest ];

meta = {
description = "A reporter for the Logs library that writes log messages to stderr, using a Mirage `CLOCK` to add timestamps";
homepage = "https://github.com/mirage/mirage-logs";
license = lib.licenses.isc;
maintainers = [ lib.maintainers.vbgl ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/ocaml-packages.nix
Original file line number Diff line number Diff line change
@@ -571,6 +571,8 @@ let

mirage-kv = callPackage ../development/ocaml-modules/mirage-kv { };

mirage-logs = callPackage ../development/ocaml-modules/mirage-logs { };

mirage-net = callPackage ../development/ocaml-modules/mirage-net { };

mirage-profile = callPackage ../development/ocaml-modules/mirage-profile { };