567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
42 lines
765 B
Nix
42 lines
765 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
ocaml,
|
|
findlib,
|
|
topkg,
|
|
ocamlbuild,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ocaml-react";
|
|
version = "1.2.2";
|
|
|
|
src = fetchurl {
|
|
url = "https://erratique.ch/software/react/releases/react-${version}.tbz";
|
|
sha256 = "sha256-xK3TFdbx8VPRFe58qN1gwSZf9NQIwmYSX8tRJP0ij5k=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
ocaml
|
|
findlib
|
|
ocamlbuild
|
|
];
|
|
buildInputs = [ topkg ];
|
|
|
|
strictDeps = true;
|
|
|
|
inherit (topkg) buildPhase installPhase;
|
|
|
|
meta = {
|
|
homepage = "https://erratique.ch/software/react";
|
|
description = "Applicative events and signals for OCaml";
|
|
license = lib.licenses.bsd3;
|
|
inherit (ocaml.meta) platforms;
|
|
maintainers = with lib.maintainers; [
|
|
vbmithr
|
|
gal_bolle
|
|
];
|
|
};
|
|
}
|