pkgs: add systemd-ml

This commit is contained in:
xenia 2024-11-27 22:29:49 -05:00
parent 556fe1ae58
commit 99f6c563b9
3 changed files with 48 additions and 0 deletions

View File

@ -132,6 +132,10 @@ opinionated ppx for string literals: <https://git.lain.faith/haskal/ppx_unicode>
logging for cats, in ocaml: <https://git.lain.faith/haskal/xlog>
### [`ocamlPackages.systemd-ml`](./pkgs/ocaml/systemd-ml)
libsystemd implementation in native ocaml: <https://git.lain.faith/haskal/systemd-ml>
### [`python312Packages.feedvalidator` or `feedvalidator`](./pkgs/python/feedvalidator)
the W3C atom/RSS feed validator library, <https://github.com/w3c/feedvalidator>

View File

@ -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: {

View File

@ -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,<h1>fuck you pirate this</h1>";
};
maintainers = [];
};
}