diff --git a/pkgs/development/ocaml-modules/samplerate/default.nix b/pkgs/development/ocaml-modules/samplerate/default.nix new file mode 100644 index 00000000000..c101cfc0c27 --- /dev/null +++ b/pkgs/development/ocaml-modules/samplerate/default.nix @@ -0,0 +1,25 @@ +{ lib, buildDunePackage, fetchFromGitHub, dune-configurator, libsamplerate }: + +buildDunePackage rec { + pname = "samplerate"; + version = "0.1.6"; + + useDune2 = true; + + src = fetchFromGitHub { + owner = "savonet"; + repo = "ocaml-samplerate"; + rev = "v${version}"; + sha256 = "0h0i9v9p9n2givv3wys8qrfi1i7vp8kq7lnkf14s7d3m4r8x4wrp"; + }; + + buildInputs = [ dune-configurator ]; + propagatedBuildInputs = [ libsamplerate ]; + + meta = with lib; { + homepage = "https://github.com/savonet/ocaml-samplerate"; + description = "Interface for libsamplerate"; + license = licenses.bsd2; + maintainers = with maintainers; [ dandellion ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 9f3b728ce6e..e5dced9b3fd 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -1108,6 +1108,8 @@ let result = callPackage ../development/ocaml-modules/ocaml-result { }; + samplerate = callPackage ../development/ocaml-modules/samplerate { }; + secp256k1 = callPackage ../development/ocaml-modules/secp256k1 { inherit (pkgs) secp256k1; };