nixpkgs/pkgs/by-name/bu/butt/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, pkg-config, fltk13, portaudio, lame, libvorbis, libogg
2024-04-24 09:40:56 +00:00
, flac, libopus, libsamplerate, fdk_aac, dbus, openssl, curl, portmidi }:
2023-11-30 14:53:27 +00:00
stdenv.mkDerivation (finalAttrs: {
pname = "butt";
2024-04-24 09:40:56 +00:00
version = "0.1.41";
src = fetchurl {
2023-11-30 14:53:27 +00:00
url = "https://danielnoethen.de/butt/release/${finalAttrs.version}/butt-${finalAttrs.version}.tar.gz";
2024-04-24 09:40:56 +00:00
hash = "sha256-wTypjqd2PpmDSA8vScMLkAL44xE/WAccm747PS9ClVA=";
};
postPatch = ''
# remove advertising
substituteInPlace src/FLTK/flgui.cpp \
--replace 'idata_radio_co_badge, 124, 61, 4,' 'nullptr, 0, 0, 0,'
'';
nativeBuildInputs = [ pkg-config ];
buildInputs = [
fltk13
portaudio
lame
libvorbis
libogg
flac
libopus
libsamplerate
fdk_aac
dbus
openssl
curl
2024-04-24 09:40:56 +00:00
portmidi
];
postInstall = ''
cp -r usr/share $out/
'';
meta = {
2023-11-30 14:53:27 +00:00
changelog = "https://danielnoethen.de/butt/Changelog.html";
description =
"butt (broadcast using this tool) is an easy to use, multi OS streaming tool";
homepage = "https://danielnoethen.de/butt/";
license = lib.licenses.gpl2;
maintainers = with lib.maintainers; [ ehmry ];
2023-11-30 14:53:27 +00:00
mainProgram = "butt";
2024-04-27 03:38:12 +00:00
platforms = lib.platforms.linux;
};
2023-11-30 14:53:27 +00:00
})