diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2022-12-31 11:42:21 +0100 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2023-01-07 13:51:10 +0100 |
commit | d1934479baf0f74db3f2126d11fd8183862c116c (patch) | |
tree | e07c16e01d5f0511a3f9bff577d49e4cffd5e48f | |
parent | db18dd281536cfd78ebe9480ee46e9e4dd53b453 (diff) |
ocamlPackages.note: init at 0.0.2
-rw-r--r-- | pkgs/development/ocaml-modules/note/default.nix | 23 | ||||
-rw-r--r-- | pkgs/top-level/ocaml-packages.nix | 2 |
2 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/note/default.nix b/pkgs/development/ocaml-modules/note/default.nix new file mode 100644 index 0000000000000..5f84296ede551 --- /dev/null +++ b/pkgs/development/ocaml-modules/note/default.nix @@ -0,0 +1,23 @@ +{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg }: + +lib.throwIfNot (lib.versionAtLeast ocaml.version "4.08") + "note is not available for OCaml ${ocaml.version}" + +stdenv.mkDerivation rec { + pname = "ocaml${ocaml.version}-note"; + version = "0.0.2"; + src = fetchurl { + url = "https://erratique.ch/software/note/releases/note-${version}.tbz"; + hash = "sha256-b35XcaDUXQLqwkNfsJKX5A1q1pAhw/mgdwyOdacZiiY="; + }; + buildInputs = [ ocaml findlib ocamlbuild topkg ]; + inherit (topkg) buildPhase installPhase; + + meta = { + homepage = "http://erratique.ch/software/note"; + description = "An OCaml module for functional reactive programming"; + license = lib.licenses.isc; + maintainers = [ lib.maintainers.vbgl ]; + inherit (ocaml.meta) platforms; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 10bb18908ca60..1865647f90dc9 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -950,6 +950,8 @@ let nonstd = callPackage ../development/ocaml-modules/nonstd { }; + note = callPackage ../development/ocaml-modules/note { }; + notty = callPackage ../development/ocaml-modules/notty { }; npy = callPackage ../development/ocaml-modules/npy { |