From 594dd76c494e2ea49e3bd7c9e7486a2db365a48b Mon Sep 17 00:00:00 2001 From: atagen Date: Fri, 10 Jan 2025 08:47:06 +1100 Subject: [PATCH] ocamlPackages.systemd: init at 1.3 (#372037) --- .../ocaml-modules/systemd/default.nix | 24 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/development/ocaml-modules/systemd/default.nix diff --git a/pkgs/development/ocaml-modules/systemd/default.nix b/pkgs/development/ocaml-modules/systemd/default.nix new file mode 100644 index 0000000000000..f729601d3a742 --- /dev/null +++ b/pkgs/development/ocaml-modules/systemd/default.nix @@ -0,0 +1,24 @@ +{ + lib, + buildDunePackage, + fetchFromGitHub, + systemdLibs, +}: +buildDunePackage { + pname = "systemd"; + version = "1.3"; + src = fetchFromGitHub { + owner = "juergenhoetzel"; + repo = "ocaml-systemd"; + rev = "1.3"; + hash = "sha256-/FV+mFhuB3mEZv34XZrA4gO6+QIYssXqurnvkNBTJ2o="; + }; + minimalOCamlVersion = "4.06"; + propagatedBuildInputs = [ systemdLibs ]; + meta = { + platform = lib.platforms.linux; + description = "OCaml module for native access to the systemd facilities"; + license = lib.licenses.lgpl3Only; + maintainers = [ lib.maintainers.atagen ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 093a0638c8c7d..2105704520f88 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -1819,6 +1819,8 @@ let syslog-message = callPackage ../development/ocaml-modules/syslog-message { }; + systemd = callPackage ../development/ocaml-modules/systemd { }; + ### T ### taglib = callPackage ../development/ocaml-modules/taglib {