add ocamlPackages.xlog

This commit is contained in:
xenia 2024-04-23 14:05:46 -04:00
parent 93d7fa507b
commit 672960f642
2 changed files with 28 additions and 1 deletions

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: { ... }:
{ {
imports = [ imports = [
@ -12,6 +12,10 @@
ghidra_headless = prev.ghidra.override { ghidra_headless = prev.ghidra.override {
openjdk17 = prev.openjdk17_headless; openjdk17 = prev.openjdk17_headless;
}; };
ocamlPackages = prev.ocamlPackages.overrideScope' (ofinal: oprev: {
xlog = ofinal.callPackage ./pkgs/ocaml/xlog {};
});
}) })
]; ];
} }

View File

@ -0,0 +1,23 @@
{
fetchgit,
buildDunePackage,
ptime,
ppxlib
}:
buildDunePackage rec {
pname = "xlog";
version = "0.0.1";
src = fetchgit {
url = "https://git.lain.faith/haskal/xlog.git";
rev = version;
hash = "sha256-AS50sT4PJm/zk58R/yniGGG0sqdqZUePcVg0BI1CA4E=";
};
minimalOcamlVersion = "5.1";
dontStrip = true;
buildInputs = [ ppxlib ];
propagatedBuildInputs = [ ptime ];
}