567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
31 lines
649 B
Nix
31 lines
649 B
Nix
{
|
|
lib,
|
|
buildDunePackage,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "cry";
|
|
version = "1.0.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "savonet";
|
|
repo = "ocaml-cry";
|
|
rev = "v${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 ];
|
|
};
|
|
}
|