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