From 93c3d1274fa5909242aa824ae10dc99295b84ee1 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Thu, 4 May 2023 09:29:04 +0100 Subject: [PATCH] butt: init at 0.1.37 Broadcast Using This Tool https://danielnoethen.de/butt/ --- pkgs/applications/audio/butt/default.nix | 47 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 49 insertions(+) create mode 100644 pkgs/applications/audio/butt/default.nix diff --git a/pkgs/applications/audio/butt/default.nix b/pkgs/applications/audio/butt/default.nix new file mode 100644 index 000000000000..2c1deb452bef --- /dev/null +++ b/pkgs/applications/audio/butt/default.nix @@ -0,0 +1,47 @@ +{ lib, stdenv, fetchurl, pkg-config, fltk13, portaudio, lame, libvorbis, libogg +, flac, libopus, libsamplerate, fdk_aac, dbus, openssl, curl }: + +stdenv.mkDerivation rec { + pname = "butt"; + version = "0.1.37"; + + src = fetchurl { + url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz"; + hash = "sha256-FI8xRCaGSMC6KEf5v87Q4syO3kVPWXYXgnL24+myRKo="; + }; + + 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 + ]; + + postInstall = '' + cp -r usr/share $out/ + ''; + + meta = { + 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 82ecbc9e124c..ac1181122e4e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3132,6 +3132,8 @@ with pkgs; bunyan-rs = callPackage ../development/tools/bunyan-rs { }; + butt = callPackage ../applications/audio/butt { }; + calcure = callPackage ../applications/misc/calcure { }; callaudiod = callPackage ../applications/audio/callaudiod { };