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
78 lines
1.4 KiB
Nix
78 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
pkg-config,
|
|
fltk13,
|
|
portaudio,
|
|
lame,
|
|
libvorbis,
|
|
libogg,
|
|
flac,
|
|
libopus,
|
|
libsamplerate,
|
|
fdk_aac,
|
|
dbus,
|
|
openssl,
|
|
curl,
|
|
portmidi,
|
|
autoPatchelfHook,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "butt";
|
|
version = "1.45.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://danielnoethen.de/butt/release/${finalAttrs.version}/butt-${finalAttrs.version}.tar.gz";
|
|
hash = "sha256-iEmFEJRsTvHeKGYvnhzYXSC/q0DSw0Z/YgK4buDtg2Q=";
|
|
};
|
|
|
|
postPatch = ''
|
|
# remove advertising
|
|
substituteInPlace src/FLTK/flgui.cpp \
|
|
--replace-fail 'idata_radio_co_badge, 124, 61, 4,' 'nullptr, 0, 0, 0,'
|
|
substituteInPlace src/FLTK/fl_timer_funcs.cpp \
|
|
--replace-fail 'radio_co_logo, 124, 61, 4,' 'nullptr, 0, 0, 0,' \
|
|
--replace-fail 'live365_logo, 124, 61, 4,' 'nullptr, 0, 0, 0,'
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
autoPatchelfHook
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
fltk13
|
|
portaudio
|
|
lame
|
|
libvorbis
|
|
libogg
|
|
flac
|
|
libopus
|
|
libsamplerate
|
|
fdk_aac
|
|
dbus
|
|
openssl
|
|
curl
|
|
portmidi
|
|
];
|
|
|
|
runtimeDependencies = [
|
|
fdk_aac
|
|
];
|
|
|
|
postInstall = ''
|
|
cp -r usr/share $out/
|
|
'';
|
|
|
|
meta = {
|
|
changelog = "https://danielnoethen.de/butt/Changelog.html";
|
|
description = "Easy to use, multi OS streaming tool";
|
|
homepage = "https://danielnoethen.de/butt/";
|
|
license = lib.licenses.gpl2;
|
|
mainProgram = "butt";
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|