diff options
author | Daniel Olsen <daniel.olsen99@gmail.com> | 2021-10-30 22:18:14 +0200 |
---|---|---|
committer | Daniel Olsen <daniel.olsen99@gmail.com> | 2022-06-08 15:21:28 +0200 |
commit | c035e81dacae0f74a5c81e08aefa904e8c418aee (patch) | |
tree | 8b1bef9653c05fbb54ad18a3d556e14715eff2cc /pkgs | |
parent | 89a381788e217161d610030b80f3f79e26faa7ef (diff) |
ocamlPackages.taglib: init at 0.3.9
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/ocaml-modules/taglib/default.nix | 26 | ||||
-rw-r--r-- | pkgs/top-level/ocaml-packages.nix | 4 |
2 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/taglib/default.nix b/pkgs/development/ocaml-modules/taglib/default.nix new file mode 100644 index 0000000000000..ecd33145614c9 --- /dev/null +++ b/pkgs/development/ocaml-modules/taglib/default.nix @@ -0,0 +1,26 @@ +{ 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 ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 53ea214cba40e..9e852d31700e3 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -1393,6 +1393,10 @@ let stringext = callPackage ../development/ocaml-modules/stringext { }; + taglib = callPackage ../development/ocaml-modules/taglib { + inherit (pkgs) taglib; + }; + tcslib = callPackage ../development/ocaml-modules/tcslib { }; telegraml = callPackage ../development/ocaml-modules/telegraml { }; |