39 lines
790 B
Nix
39 lines
790 B
Nix
{ stdenv
|
|
, lib
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, cpp-utilities
|
|
, zlib
|
|
, isocodes
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "tagparser";
|
|
version = "11.5.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Martchus";
|
|
repo = "tagparser";
|
|
rev = "v${version}";
|
|
hash = "sha256-6HvPbbDsHIYyTs0M5M8TkgqyAz0QtgRjuNJhYWFjNG4=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [
|
|
cpp-utilities zlib
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DLANGUAGE_FILE_ISO_639_2=${isocodes}/share/iso-codes/json/iso_639-2.json"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/Martchus/tagparser";
|
|
description = "C++ library for reading and writing MP4/M4A/AAC (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags";
|
|
license = licenses.gpl2;
|
|
maintainers = [ maintainers.matthiasbeyer ];
|
|
};
|
|
}
|
|
|