summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules/cry/default.nix
blob: 8cdf29df618c94a9fe7ea5580483aaf2eefa6ab0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
  lib,
  buildDunePackage,
  fetchFromGitHub,
}:

buildDunePackage (finalAttrs: {
  pname = "cry";
  version = "1.0.3";

  src = fetchFromGitHub {
    owner = "savonet";
    repo = "ocaml-cry";
    rev = "v${finalAttrs.version}";
    hash = "sha256-ea6f2xTVmYekPmzAKasA9mNG4Voxw2MCkfZ9LB9gwbo=";
  };

  postPatch = ''
    substituteInPlace src/dune --replace-warn bytes ""
  '';

  minimalOCamlVersion = "4.12";

  meta = {
    homepage = "https://github.com/savonet/ocaml-cry";
    description = "OCaml client for the various icecast & shoutcast source protocols";
    license = lib.licenses.gpl2Plus;
    maintainers = with lib.maintainers; [ dandellion ];
  };
})