diff --git a/pkgs/development/ocaml-modules/pulseaudio/default.nix b/pkgs/development/ocaml-modules/pulseaudio/default.nix new file mode 100644 index 000000000000..75f5e0f414fb --- /dev/null +++ b/pkgs/development/ocaml-modules/pulseaudio/default.nix @@ -0,0 +1,24 @@ +{ lib, buildDunePackage, fetchFromGitHub, dune-configurator, pkg-config, pulseaudio }: + +buildDunePackage rec { + pname = "pulseaudio"; + version = "0.1.5"; + + src = fetchFromGitHub { + owner = "savonet"; + repo = "ocaml-pulseaudio"; + rev = "v${version}"; + sha256 = "sha256-eG2HS5g3ycDftRDyXGBwPJE7VRnLXNUgcEgNfVm//ds="; + }; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ dune-configurator ]; + propagatedBuildInputs = [ pulseaudio ]; + + meta = with lib; { + homepage = "https://github.com/savonet/ocaml-pulseaudio"; + description = "Bindings to Pulseaudio client library"; + license = licenses.lgpl21Only; + maintainers = with maintainers; [ dandellion ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index e0138ffb2918..1a03b0c2bcd3 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -1135,6 +1135,10 @@ let ptime = callPackage ../development/ocaml-modules/ptime { }; + pulseaudio = callPackage ../development/ocaml-modules/pulseaudio { + inherit (pkgs) pulseaudio; + }; + pure-splitmix = callPackage ../development/ocaml-modules/pure-splitmix { }; resource-pooling = callPackage ../development/ocaml-modules/resource-pooling { };