From 45d3c40cc45159f53e7da291c4937cfba899b968 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Mon, 9 Dec 2019 10:29:13 +0000 Subject: [PATCH] ocamlPackages.irmin-git: init at 2.0.0 --- pkgs/development/ocaml-modules/irmin/git.nix | 20 ++++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 22 insertions(+) create mode 100644 pkgs/development/ocaml-modules/irmin/git.nix diff --git a/pkgs/development/ocaml-modules/irmin/git.nix b/pkgs/development/ocaml-modules/irmin/git.nix new file mode 100644 index 00000000000..bb28042a1f6 --- /dev/null +++ b/pkgs/development/ocaml-modules/irmin/git.nix @@ -0,0 +1,20 @@ +{ lib, buildDunePackage, git, irmin, irmin-mem, irmin-test, git-unix }: + +buildDunePackage rec { + + pname = "irmin-git"; + + inherit (irmin) version src; + + propagatedBuildInputs = [ git irmin ]; + + checkInputs = lib.optionals doCheck [ git-unix irmin-mem irmin-test ]; + + doCheck = true; + + meta = irmin.meta // { + description = "Git backend for Irmin"; + }; + +} + diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 6f7fa3f7e56..e20f92d0f84 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -372,6 +372,8 @@ let irmin = callPackage ../development/ocaml-modules/irmin { }; + irmin-git = callPackage ../development/ocaml-modules/irmin/git.nix { }; + irmin-mem = callPackage ../development/ocaml-modules/irmin/mem.nix { }; irmin-test = callPackage ../development/ocaml-modules/irmin/test.nix { };