2021-01-19 06:50:56 +00:00
|
|
|
{ lib, stdenv, fetchurl, makeWrapper, gtk2, libcddb, intltool, pkg-config, cdparanoia
|
2016-09-13 05:06:23 +00: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
|
|
|
|
}:
|
|
|
|
|
2021-01-15 13:21:58 +00:00
|
|
|
with lib;
|
2016-09-13 05:06:23 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-10-22 01:04:44 +00:00
|
|
|
version = "2.9.7";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "asunder";
|
2016-09-13 05:06:23 +00:00
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "http://littlesvr.ca/asunder/releases/${pname}-${version}.tar.bz2";
|
2020-10-22 01:04:44 +00:00
|
|
|
sha256 = "1x3l308ss0iqhz90qyjb94gyd8b4piyrm2nzjmg5kf049k9prjf1";
|
2016-09-13 05:06:23 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ intltool makeWrapper pkg-config ];
|
2019-11-04 16:09:25 +00:00
|
|
|
buildInputs = [ gtk2 libcddb ];
|
2016-09-13 05:06:23 +00: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";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://littlesvr.ca/asunder/index.php";
|
2016-09-13 05:06:23 +00:00
|
|
|
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.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|