ocamlPackages.reactivedata: 0.2.2 → 0.3

This commit is contained in:
Vincent Laporte 2022-11-17 08:46:24 +01:00 committed by Vincent Laporte
parent c7db6a8abd
commit 5ab18b18ed
2 changed files with 9 additions and 16 deletions

View file

@ -1,34 +1,26 @@
{ lib, stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, react, opaline }: { lib, fetchFromGitHub, buildDunePackage, react }:
if lib.versionOlder ocaml.version "4.04" buildDunePackage rec {
then throw "reactiveData is not available for OCaml ${ocaml.version}" pname = "reactiveData";
else version = "0.3";
duneVersion = "3";
stdenv.mkDerivation rec { minimalOCamlVersion = "4.08";
pname = "ocaml${ocaml.version}-reactiveData";
version = "0.2.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ocsigen"; owner = "ocsigen";
repo = "reactiveData"; repo = "reactiveData";
rev = version; rev = version;
sha256 = "sha256-YLkacIbjxZQ/ThgSxjTqviBYih6eW2GX5H7iybQDv1A="; sha256 = "sha256-imUphE1vMe3bYqHhgTuGT+B7uLn75acX6fAwBLh1tz4=";
}; };
nativeBuildInputs = [ ocaml findlib ocamlbuild opaline ];
propagatedBuildInputs = [ react ]; propagatedBuildInputs = [ react ];
strictDeps = true; strictDeps = true;
buildPhase = "ocaml pkg/build.ml native=true native-dynlink=true";
installPhase = "opaline -prefix $out -libdir $OCAMLFIND_DESTDIR";
meta = with lib; { meta = with lib; {
description = "An OCaml module for functional reactive programming (FRP) based on React"; description = "An OCaml module for functional reactive programming (FRP) based on React";
homepage = "https://github.com/ocsigen/reactiveData"; homepage = "https://github.com/ocsigen/reactiveData";
license = licenses.lgpl21; license = licenses.lgpl21;
platforms = ocaml.meta.platforms or [ ];
maintainers = with maintainers; [ vbgl ]; maintainers = with maintainers; [ vbgl ];
}; };
} }

View file

@ -6,7 +6,8 @@
buildDunePackage { buildDunePackage {
pname = "js_of_ocaml-tyxml"; pname = "js_of_ocaml-tyxml";
inherit (js_of_ocaml-compiler) version src useDune2; inherit (js_of_ocaml-compiler) version src;
duneVersion = "3";
buildInputs = [ js_of_ocaml-ppx ]; buildInputs = [ js_of_ocaml-ppx ];