40 lines
733 B
Nix
40 lines
733 B
Nix
|
|
{
|
||
|
|
lib,
|
||
|
|
fetchzip,
|
||
|
|
buildDunePackage,
|
||
|
|
js_of_ocaml-compiler,
|
||
|
|
gen_js_api,
|
||
|
|
ojs,
|
||
|
|
}:
|
||
|
|
|
||
|
|
buildDunePackage rec {
|
||
|
|
pname = "vdom";
|
||
|
|
version = "0.3";
|
||
|
|
minimalOCamlVersion = "4.08";
|
||
|
|
|
||
|
|
src = fetchzip {
|
||
|
|
url = "https://github.com/LexiFi/ocaml-vdom/archive/refs/tags/${version}.tar.gz";
|
||
|
|
hash = "sha256-mlXOb+KCdHWNL9PAppan7m7JaP83JEjq+tu14JI+NJo=";
|
||
|
|
};
|
||
|
|
|
||
|
|
nativeBuildInputs = [
|
||
|
|
gen_js_api
|
||
|
|
];
|
||
|
|
|
||
|
|
buildInputs = [
|
||
|
|
gen_js_api
|
||
|
|
];
|
||
|
|
|
||
|
|
propagatedBuildInputs = [
|
||
|
|
js_of_ocaml-compiler
|
||
|
|
ojs
|
||
|
|
];
|
||
|
|
|
||
|
|
meta = {
|
||
|
|
homepage = "https://github.com/LexiFi/ocaml-vdom";
|
||
|
|
description = "Elm architecture and (V)DOM for OCaml";
|
||
|
|
license = lib.licenses.mit;
|
||
|
|
maintainers = with lib.maintainers; [ jayesh-bhoot ];
|
||
|
|
};
|
||
|
|
}
|