Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
76 lines
1.7 KiB
Nix
76 lines
1.7 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
makeWrapper,
|
|
gtk2,
|
|
libcddb,
|
|
intltool,
|
|
pkg-config,
|
|
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
|
|
}:
|
|
|
|
let
|
|
runtimeDeps =
|
|
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
|
|
++ [ cdparanoia ];
|
|
in
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
version = "3.0.1";
|
|
pname = "asunder";
|
|
src = fetchurl {
|
|
url = "http://littlesvr.ca/asunder/releases/asunder-${finalAttrs.version}.tar.bz2";
|
|
hash = "sha256-iGji4bl7ZofIAOf2EiYqMWu4V+3TmIN2jOYottJTN2s=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
intltool
|
|
makeWrapper
|
|
pkg-config
|
|
];
|
|
buildInputs = [
|
|
gtk2
|
|
libcddb
|
|
];
|
|
|
|
postInstall = ''
|
|
wrapProgram "$out/bin/asunder" \
|
|
--prefix PATH : "${lib.makeBinPath runtimeDeps}"
|
|
'';
|
|
|
|
meta = {
|
|
description = "Graphical Audio CD ripper and encoder for Linux";
|
|
mainProgram = "asunder";
|
|
homepage = "http://littlesvr.ca/asunder/index.php";
|
|
license = lib.licenses.gpl2;
|
|
maintainers = with lib.maintainers; [ mudri ];
|
|
platforms = lib.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.
|
|
'';
|
|
};
|
|
})
|