From 3577ecd90e01fae8caf5d05446a0c642349d8ac9 Mon Sep 17 00:00:00 2001 From: xenia Date: Wed, 27 Nov 2024 22:29:49 -0500 Subject: [PATCH] pkgs: add systemd-ml --- README.md | 4 +++ overlay.nix | 1 + pkgs/ocaml/systemd-ml/default.nix | 43 +++++++++++++++++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 pkgs/ocaml/systemd-ml/default.nix diff --git a/README.md b/README.md index e4949d1..5665b70 100644 --- a/README.md +++ b/README.md @@ -132,6 +132,10 @@ opinionated ppx for string literals: logging for cats, in ocaml: +### [`ocamlPackages.systemd-ml`](./pkgs/ocaml/systemd-ml) + +libsystemd implementation in native ocaml: + ### [`python312Packages.feedvalidator` or `feedvalidator`](./pkgs/python/feedvalidator) the W3C atom/RSS feed validator library, diff --git a/overlay.nix b/overlay.nix index 05c932c..1be6844 100644 --- a/overlay.nix +++ b/overlay.nix @@ -23,6 +23,7 @@ final: prev: { ocamlPackages = prev.ocamlPackages.overrideScope (ofinal: oprev: { ppx_unicode = ofinal.callPackage ./pkgs/ocaml/ppx_unicode {}; xlog = ofinal.callPackage ./pkgs/ocaml/xlog {}; + systemd-ml = ofinal.callPackage ./pkgs/ocaml/systemd-ml {}; }); python3Packages = prev.python3Packages.overrideScope (pfinal: pprev: { diff --git a/pkgs/ocaml/systemd-ml/default.nix b/pkgs/ocaml/systemd-ml/default.nix new file mode 100644 index 0000000..390db8e --- /dev/null +++ b/pkgs/ocaml/systemd-ml/default.nix @@ -0,0 +1,43 @@ +{ + fetchgit, + buildDunePackage, + + cstruct, + dune-configurator, + eio, + eio_linux, + eio_main, + ppx_unicode, + ptime, + xlog, +}: +buildDunePackage rec { + pname = "systemd-ml"; + version = "0.1.0"; + + src = fetchgit { + url = "https://git.lain.faith/haskal/systemd-ml.git"; + rev = version; + hash = "sha256-IkWBObwQJF5wum46OsLTH1wmPqWnF5/UuTnBFbs/o/0="; + }; + + minimalOcamlVersion = "5.1"; + dontStrip = true; + + nativeBuildInputs = [ dune-configurator ppx_unicode ]; + propagatedBuildInputs = [ cstruct dune-configurator eio eio_linux eio_main ppx_unicode ptime xlog ]; + + meta = { + description = ""; + homepage = "https://git.lain.faith/haskal/systemd-ml"; + license = { + shortName = "fyptl"; + fullName = "fuck you pirate this license"; + deprecated = false; + free = false; + redistributable = false; + url = "data:text/html,

fuck you pirate this

"; + }; + maintainers = []; + }; +}