2021-01-19 07:50:56 +01:00
|
|
|
{ lib, stdenv, fetchurl, makeWrapper, gtk2, libcddb, intltool, pkg-config, cdparanoia
|
2016-09-13 07:06:23 +02: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-14 10:01:52 +02:00
|
|
|
version = "3.0.1";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "asunder";
|
2016-09-13 07:06:23 +02:00
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "http://littlesvr.ca/asunder/releases/${pname}-${version}.tar.bz2";
|
2023-08-14 10:01:52 +02:00
|
|
|
sha256 = "sha256-iGji4bl7ZofIAOf2EiYqMWu4V+3TmIN2jOYottJTN2s=";
|
2016-09-13 07:06:23 +02:00
|
|
|
};
|
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ intltool makeWrapper pkg-config ];
|
2019-11-04 17:09:25 +01:00
|
|
|
buildInputs = [ gtk2 libcddb ];
|
2016-09-13 07:06:23 +02:00
|
|
|
|
|
|
|
runtimeDeps =
|
2023-01-21 23:06:40 +01: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 ++
|
2016-09-13 07:06:23 +02:00
|
|
|
[ cdparanoia ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out/bin/asunder" \
|
2023-01-21 23:06:40 +01:00
|
|
|
--prefix PATH : "${lib.makeBinPath runtimeDeps}"
|
2016-09-13 07:06:23 +02:00
|
|
|
'';
|
|
|
|
|
2023-01-21 23:06:40 +01:00
|
|
|
meta = with lib; {
|
2016-09-13 07:06:23 +02:00
|
|
|
description = "Graphical Audio CD ripper and encoder for Linux";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "asunder";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://littlesvr.ca/asunder/index.php";
|
2016-09-13 07:06:23 +02: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.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|