1 { lib, stdenv, fetchurl, libcdio-paranoia, cddiscid, wget, which, vorbis-tools, id3v2, eyed3
12 url = "https://abcde.einval.com/download/abcde-${version}.tar.gz";
13 sha256 = "091ip2iwb6b67bhjsj05l0sxyq2whqjycbzqpkfbpm4dlyxx0v04";
16 # FIXME: This package does not support `distmp3', `eject', etc.
19 sed -i "s|^[[:blank:]]*prefix *=.*$|prefix = $out|g ;
20 s|^[[:blank:]]*etcdir *=.*$|etcdir = $out/etc|g ;
21 s|^[[:blank:]]*INSTALL *=.*$|INSTALL = install -c|g" \
24 echo 'CDPARANOIA=${libcdio-paranoia}/bin/cd-paranoia' >>abcde.conf
25 echo CDROMREADERSYNTAX=cdparanoia >>abcde.conf
27 substituteInPlace "abcde" \
28 --replace "/etc/abcde.conf" "$out/etc/abcde.conf"
31 nativeBuildInputs = [ makeWrapper ];
33 buildInputs = with perlPackages; [ perl MusicBrainz MusicBrainzDiscID IOSocketSSL ];
35 installFlags = [ "sysconfdir=$(out)/etc" ];
38 for cmd in abcde cddb-tool abcde-musicbrainz-tool; do
39 wrapProgram "$out/bin/$cmd" \
40 --prefix PERL5LIB : "$PERL5LIB" \
41 --prefix PATH ":" ${lib.makeBinPath [
42 "$out" which libcdio-paranoia cddiscid wget
43 vorbis-tools id3v2 eyed3 lame flac glyr
49 homepage = "http://abcde.einval.com/wiki/";
50 license = licenses.gpl2Plus;
51 maintainers = with maintainers; [ gebner ];
52 description = "Command-line audio CD ripper";
54 abcde is a front-end command-line utility (actually, a shell
55 script) that grabs tracks off a CD, encodes them to
56 Ogg/Vorbis, MP3, FLAC, Ogg/Speex and/or MPP/MP+ (Musepack)
57 format, and tags them, all in one go.
59 platforms = platforms.linux;