2016-09-13 10:57:22 +01:00
|
|
|
{ stdenv, fetchurl, makeWrapper, gtk2, libcddb, intltool, pkgconfig, cdparanoia
|
2016-09-13 06:06:23 +01:00
|
|
|
, mp3Support ? false, lame
|
|
|
|
, oggSupport ? true, vorbis-tools
|
|
|
|
, flacSupport ? true, flac
|
|
|
|
, opusSupport ? false, opusTools
|
|
|
|
, wavpackSupport ? false, wavpack
|
|
|
|
#, musepackSupport ? false, TODO: mpcenc
|
|
|
|
, monkeysAudioSupport ? false, monkeysAudio
|
|
|
|
#, aacSupport ? false, TODO: neroAacEnc
|
|
|
|
}:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-24 23:52:53 +00:00
|
|
|
version = "2.9.2";
|
2016-09-13 06:06:23 +01:00
|
|
|
name = "asunder-${version}";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://littlesvr.ca/asunder/releases/${name}.tar.bz2";
|
2018-02-24 23:52:53 +00:00
|
|
|
sha256 = "0vjbxrrjih4c673sc39wj5whp81xp9kmnwqxwzfnmhkky970rg5r";
|
2016-09-13 06:06:23 +01:00
|
|
|
};
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ gtk2 libcddb intltool makeWrapper ];
|
2016-09-13 06:06:23 +01:00
|
|
|
|
|
|
|
runtimeDeps =
|
|
|
|
optional mp3Support lame ++
|
|
|
|
optional oggSupport vorbis-tools ++
|
|
|
|
optional flacSupport flac ++
|
|
|
|
optional opusSupport opusTools ++
|
|
|
|
optional wavpackSupport wavpack ++
|
|
|
|
optional monkeysAudioSupport monkeysAudio ++
|
|
|
|
[ cdparanoia ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out/bin/asunder" \
|
|
|
|
--prefix PATH : "${makeBinPath runtimeDeps}"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A graphical Audio CD ripper and encoder for Linux";
|
|
|
|
homepage = http://littlesvr.ca/asunder/index.php;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ mudri ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
Asunder is a graphical Audio CD ripper and encoder for Linux. You can use
|
|
|
|
it to save tracks from an Audio CD as any of WAV, MP3, OGG, FLAC, Opus,
|
|
|
|
WavPack, Musepack, AAC, and Monkey's Audio files.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|