summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/taglib/default.nix
blob: 95b5ae04578ff5bff5d05cbfa0ca19ae74b68400 (plain) (blame)
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
{ lib, buildDunePackage, fetchFromGitHub, dune-configurator, pkg-config, taglib, zlib }:

buildDunePackage rec {
  pname = "taglib";
  version = "0.3.10";

  src = fetchFromGitHub {
    owner = "savonet";
    repo = "ocaml-taglib";
    rev = "v${version}";
    sha256 = "sha256-tAvzVr0PW1o0kKFxdi/ks4obqnyBm8YfiiFupXZkUho=";
  };

  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 ];
  };
}