nixpkgs/pkgs/development/ocaml-modules/taglib/default.nix
2022-06-08 15:21:28 +02:00

27 lines
911 B
Nix

{ lib, buildDunePackage, fetchFromGitHub, dune-configurator, pkg-config, taglib, zlib }:
buildDunePackage rec {
pname = "taglib";
version = "0.3.9";
src = fetchFromGitHub {
owner = "savonet";
repo = "ocaml-taglib";
rev = "v${version}";
sha256 = "sha256-n8Vv8Vepvhx7anZdWIdBfw+HSQShKWjNe6l0gqRRsSs=";
};
minimalOCamlVersion = "4.05.0"; # Documented version 4.02.0. 4.05.0 actually required.
nativeBuildInputs = [ pkg-config ];
buildInputs = [ dune-configurator ];
propagatedBuildInputs = [ taglib zlib ];
meta = with lib; {
homepage = "https://github.com/savonet/ocaml-taglib";
description = "Bindings for the taglib library which provides functions for reading tags in headers of audio files";
license = with licenses; [ lgpl21Plus "link-exception" ]; # GNU Library Public License 2 Linking Exception
maintainers = with maintainers; [ dandellion ];
};
}