mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 13:37:21 +03:00
52 lines
1.5 KiB
Nix
52 lines
1.5 KiB
Nix
{ stdenv, fetchurl, makeWrapper, gtk2, libcddb, intltool, pkgconfig, cdparanoia
|
|
, 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 {
|
|
version = "2.8";
|
|
name = "asunder-${version}";
|
|
src = fetchurl {
|
|
url = "http://littlesvr.ca/asunder/releases/${name}.tar.bz2";
|
|
sha256 = "1nq9kd4rd4k2kibf57gdbm0zw2gxa234vvvdhxkm8g5bhx5h3iyq";
|
|
};
|
|
|
|
buildInputs = [ gtk2 libcddb intltool pkgconfig makeWrapper ];
|
|
|
|
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.
|
|
'';
|
|
};
|
|
}
|