2014-09-29 01:30:37 +01:00
|
|
|
{ stdenv, fetchurl
|
2018-05-01 19:20:15 +01:00
|
|
|
, pkgconfig, cmake, python, ffmpeg, phonon, automoc4
|
|
|
|
, chromaprint, docbook_xml_dtd_45, docbook_xsl, libxslt
|
|
|
|
, id3lib, taglib, mp4v2, flac, libogg, libvorbis
|
|
|
|
, zlib, readline , qtbase, qttools, qtmultimedia, qtquickcontrols
|
2014-09-29 01:30:37 +01:00
|
|
|
, makeWrapper
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
2016-10-23 02:18:32 +01:00
|
|
|
name = "kid3-${version}";
|
2018-04-26 12:30:01 +01:00
|
|
|
version = "3.6.1";
|
2014-09-29 01:30:37 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-10-23 02:18:32 +01:00
|
|
|
url = "mirror://sourceforge/project/kid3/kid3/${version}/${name}.tar.gz";
|
2018-04-26 12:30:01 +01:00
|
|
|
sha256 = "1bbnd6jgahdiqmsbw6c3x4h517m50db592fnq1w0v4k5aaav4i26";
|
2014-09-29 01:30:37 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = with stdenv.lib;
|
2018-05-01 19:20:15 +01:00
|
|
|
[ pkgconfig cmake python ffmpeg phonon automoc4
|
|
|
|
chromaprint docbook_xml_dtd_45 docbook_xsl libxslt
|
|
|
|
id3lib taglib mp4v2 flac libogg libvorbis zlib readline
|
|
|
|
qtbase qttools qtmultimedia qtquickcontrols makeWrapper ];
|
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/"
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
2018-05-01 19:20:15 +01:00
|
|
|
wrapProgram $out/bin/kid3-qt --prefix QT_PLUGIN_PATH : $out/lib/qt5/plugins
|
2014-09-29 01:30:37 +01:00
|
|
|
'';
|
|
|
|
|
2017-11-26 07:40:38 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2014-09-29 01:30:37 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A simple and powerful audio tag editor";
|
|
|
|
longDescription = ''
|
|
|
|
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.
|
|
|
|
|
|
|
|
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
|
|
|
|
- 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;
|
|
|
|
- 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;
|
|
|
|
- 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
|
|
|
|
'';
|
|
|
|
homepage = http://kid3.sourceforge.net/;
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|