diff --git a/pkgs/development/ocaml-modules/frei0r/default.nix b/pkgs/development/ocaml-modules/frei0r/default.nix new file mode 100644 index 00000000000..4f4a64d220a --- /dev/null +++ b/pkgs/development/ocaml-modules/frei0r/default.nix @@ -0,0 +1,24 @@ +{ lib, buildDunePackage, fetchFromGitHub, dune-configurator, pkg-config, frei0r }: + +buildDunePackage rec { + pname = "frei0r"; + version = "0.1.2"; + + src = fetchFromGitHub { + owner = "savonet"; + repo = "ocaml-frei0r"; + rev = "v${version}"; + sha256 = "sha256-eh/ymZO/3a1z6uvZdnXgma/7AU2NBVs2lddA+R/kuQA="; + }; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ dune-configurator ]; + propagatedBuildInputs = [ frei0r ]; + + meta = with lib; { + homepage = "https://github.com/savonet/ocaml-frei0r"; + description = "Bindings for the frei0r API which provides video effects"; + license = licenses.lgpl21Plus; + maintainers = with maintainers; [ dandellion ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 3c507c1fdf9..e7908de5ec9 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -464,6 +464,10 @@ let fpath = callPackage ../development/ocaml-modules/fpath { }; + frei0r = callPackage ../development/ocaml-modules/frei0r { + inherit (pkgs) frei0r; + }; + functoria = callPackage ../development/ocaml-modules/functoria { }; functoria-runtime = callPackage ../development/ocaml-modules/functoria/runtime.nix { };