2021-04-08 23:49:47 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, automoc4
|
|
|
|
, chromaprint
|
|
|
|
, cmake
|
|
|
|
, docbook_xml_dtd_45
|
|
|
|
, docbook_xsl
|
2021-04-27 01:06:14 +01:00
|
|
|
, ffmpeg
|
2021-04-08 23:49:47 +01:00
|
|
|
, flac
|
|
|
|
, id3lib
|
|
|
|
, libogg
|
|
|
|
, libvorbis
|
|
|
|
, libxslt
|
|
|
|
, mp4v2
|
|
|
|
, phonon
|
|
|
|
, pkg-config
|
|
|
|
, python3
|
|
|
|
, qtbase
|
|
|
|
, qtmultimedia
|
|
|
|
, qtquickcontrols
|
|
|
|
, qttools
|
|
|
|
, readline
|
|
|
|
, taglib
|
2019-07-05 16:42:08 +01:00
|
|
|
, wrapQtAppsHook
|
2021-04-08 23:49:47 +01:00
|
|
|
, zlib
|
2014-09-29 01:30:37 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "kid3";
|
2021-08-13 18:48:26 +01:00
|
|
|
version = "3.8.7";
|
2014-09-29 01:30:37 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-04-27 01:06:14 +01:00
|
|
|
url = "https://download.kde.org/stable/${pname}/${version}/${pname}-${version}.tar.xz";
|
2021-08-13 18:48:26 +01:00
|
|
|
sha256 = "sha256-Dr+NLh5ajG42jRKt1Swq6mccPfuAXRvhhoTNuO8lnI0=";
|
2014-09-29 01:30:37 +01:00
|
|
|
};
|
|
|
|
|
2021-04-08 23:49:47 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
2021-04-27 01:06:14 +01:00
|
|
|
docbook_xml_dtd_45
|
|
|
|
docbook_xsl
|
2021-04-08 23:49:47 +01:00
|
|
|
pkg-config
|
2021-04-27 01:06:14 +01:00
|
|
|
python3
|
2021-04-08 23:49:47 +01:00
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
automoc4
|
|
|
|
chromaprint
|
2021-04-27 01:06:14 +01:00
|
|
|
ffmpeg
|
2021-04-08 23:49:47 +01:00
|
|
|
flac
|
|
|
|
id3lib
|
|
|
|
libogg
|
|
|
|
libvorbis
|
|
|
|
libxslt
|
|
|
|
mp4v2
|
|
|
|
phonon
|
|
|
|
qtbase
|
|
|
|
qtmultimedia
|
|
|
|
qtquickcontrols
|
|
|
|
qttools
|
|
|
|
readline
|
|
|
|
taglib
|
|
|
|
zlib
|
|
|
|
];
|
2014-09-29 01:30:37 +01:00
|
|
|
|
2016-08-25 22:11:27 +01:00
|
|
|
cmakeFlags = [ "-DWITH_APPS=Qt;CLI" ];
|
2014-09-29 01:30:37 +01:00
|
|
|
NIX_LDFLAGS = "-lm -lpthread";
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export DOCBOOKDIR="${docbook_xsl}/xml/xsl/docbook/"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-04-27 01:06:14 +01:00
|
|
|
homepage = "https://kid3.kde.org/";
|
2014-09-29 01:30:37 +01:00
|
|
|
description = "A simple and powerful audio tag editor";
|
|
|
|
longDescription = ''
|
2020-10-10 05:57:56 +01:00
|
|
|
If you want to easily tag multiple MP3, Ogg/Vorbis, FLAC, MPC, MP4/AAC,
|
|
|
|
MP2, Opus, Speex, TrueAudio, WavPack, WMA, WAV and AIFF files (e.g. full
|
|
|
|
albums) without typing the same information again and again and have
|
|
|
|
control over both ID3v1 and ID3v2 tags, then Kid3 is the program you are
|
|
|
|
looking for.
|
2014-09-29 01:30:37 +01:00
|
|
|
|
|
|
|
With Kid3 you can:
|
|
|
|
- Edit ID3v1.1 tags;
|
|
|
|
- Edit all ID3v2.3 and ID3v2.4 frames;
|
|
|
|
- Convert between ID3v1.1, ID3v2.3 and ID3v2.4 tags
|
2020-10-10 05:57:56 +01:00
|
|
|
- Edit tags in MP3, Ogg/Vorbis, FLAC, MPC, MP4/AAC, MP2, Opus, Speex,
|
|
|
|
TrueAudio, WavPack, WMA, WAV, AIFF files and tracker modules (MOD, S3M,
|
|
|
|
IT, XM);
|
|
|
|
- Edit tags of multiple files, e.g. the artist, album, year and genre of
|
|
|
|
all files of an album typically have the same values and can be set
|
|
|
|
together;
|
2014-09-29 01:30:37 +01:00
|
|
|
- Generate tags from filenames;
|
|
|
|
- Generate tags from the contents of tag fields;
|
|
|
|
- Generate filenames from tags;
|
|
|
|
- Rename and create directories from tags;
|
|
|
|
- Generate playlist files;
|
|
|
|
- Automatically convert upper and lower case and replace strings;
|
2020-10-10 05:57:56 +01:00
|
|
|
- Import from gnudb.org, TrackType.org, MusicBrainz, Discogs, Amazon and
|
|
|
|
other sources of album data;
|
|
|
|
- Export tags as CSV, HTML, playlists, Kover XML and in other formats;
|
|
|
|
- Edit synchronized lyrics and event timing codes, import and export
|
|
|
|
LRC files.
|
2014-09-29 01:30:37 +01:00
|
|
|
'';
|
|
|
|
license = licenses.lgpl2Plus;
|
|
|
|
maintainers = [ maintainers.AndersonTorres ];
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = platforms.linux;
|
2014-09-29 01:30:37 +01:00
|
|
|
};
|
|
|
|
}
|