2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, makeWrapper, gtk2, libcddb, intltool, pkg-config, cdparanoia
|
2020-04-24 23:36:52 +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
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "3.0.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "asunder";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://littlesvr.ca/asunder/releases/${pname}-${version}.tar.bz2";
|
2023-08-22 20:05:09 +00:00
|
|
|
sha256 = "sha256-iGji4bl7ZofIAOf2EiYqMWu4V+3TmIN2jOYottJTN2s=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ intltool makeWrapper pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ gtk2 libcddb ];
|
|
|
|
|
|
|
|
runtimeDeps =
|
2023-02-02 18:25:31 +00:00
|
|
|
lib.optional mp3Support lame ++
|
|
|
|
lib.optional oggSupport vorbis-tools ++
|
|
|
|
lib.optional flacSupport flac ++
|
|
|
|
lib.optional opusSupport opusTools ++
|
|
|
|
lib.optional wavpackSupport wavpack ++
|
|
|
|
lib.optional monkeysAudioSupport monkeysAudio ++
|
2020-04-24 23:36:52 +00:00
|
|
|
[ cdparanoia ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out/bin/asunder" \
|
2023-02-02 18:25:31 +00:00
|
|
|
--prefix PATH : "${lib.makeBinPath runtimeDeps}"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|