1{
2 lib,
3 buildDunePackage,
4 fetchFromGitHub,
5 dune-configurator,
6 libsamplerate,
7}:
8
9buildDunePackage rec {
10 pname = "samplerate";
11 version = "0.1.6";
12
13 useDune2 = true;
14
15 src = fetchFromGitHub {
16 owner = "savonet";
17 repo = "ocaml-samplerate";
18 rev = "v${version}";
19 sha256 = "0h0i9v9p9n2givv3wys8qrfi1i7vp8kq7lnkf14s7d3m4r8x4wrp";
20 };
21
22 buildInputs = [ dune-configurator ];
23 propagatedBuildInputs = [ libsamplerate ];
24
25 meta = with lib; {
26 homepage = "https://github.com/savonet/ocaml-samplerate";
27 description = "Interface for libsamplerate";
28 license = licenses.bsd2;
29 maintainers = with maintainers; [ dandellion ];
30 };
31}