From 11208c64001f7c0c0073b6fd47c21bd9b1aff8aa Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Sat, 30 Oct 2021 03:55:04 +0200 Subject: [PATCH] ocamlPackages.lo: init at 0.2.0 --- pkgs/development/ocaml-modules/lo/default.nix | 23 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 pkgs/development/ocaml-modules/lo/default.nix diff --git a/pkgs/development/ocaml-modules/lo/default.nix b/pkgs/development/ocaml-modules/lo/default.nix new file mode 100644 index 000000000000..57e7dea51604 --- /dev/null +++ b/pkgs/development/ocaml-modules/lo/default.nix @@ -0,0 +1,23 @@ +{ lib, buildDunePackage, fetchFromGitHub, dune-configurator, liblo }: + +buildDunePackage rec { + pname = "lo"; + version = "0.2.0"; + + src = fetchFromGitHub { + owner = "savonet"; + repo = "ocaml-lo"; + rev = "v${version}"; + sha256 = "0mi8h6f6syxjkxz493l5c3l270pvxx33pz0k3v5465wqjsnppar2"; + }; + + buildInputs = [ dune-configurator ]; + propagatedBuildInputs = [ liblo ]; + + meta = with lib; { + homepage = "https://github.com/savonet/ocaml-lo"; + description = "Bindings for LO library"; + license = licenses.lgpl21Plus; + maintainers = with maintainers; [ dandellion ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 2a942bebb0a6..61fe37e1cc70 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -698,6 +698,8 @@ let libllvm = pkgs.llvmPackages_10.libllvm; }; + lo = callPackage ../development/ocaml-modules/lo { }; + logs = callPackage ../development/ocaml-modules/logs { }; lru = callPackage ../development/ocaml-modules/lru { };