From 40caf32dd979521be11bc8a432271f71405840cf Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Thu, 5 Dec 2024 10:21:06 +0000 Subject: [PATCH] butt: 1.42.0 -> 1.44.0 Add more patching to remove advertising. --- pkgs/by-name/bu/butt/package.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/bu/butt/package.nix b/pkgs/by-name/bu/butt/package.nix index 9e0938652e01..558d044d34d9 100644 --- a/pkgs/by-name/bu/butt/package.nix +++ b/pkgs/by-name/bu/butt/package.nix @@ -3,17 +3,20 @@ stdenv.mkDerivation (finalAttrs: { pname = "butt"; - version = "1.42.0"; + version = "1.44.0"; src = fetchurl { url = "https://danielnoethen.de/butt/release/${finalAttrs.version}/butt-${finalAttrs.version}.tar.gz"; - hash = "sha256-/Y96Pq/3D37n/2JZdvcEQ1BBEtHlJ030QLesfNyBg2g="; + hash = "sha256-2RC0ChDbyhzjd+4jnBRuR0botIVQugpA1rUZm1yH4Kc="; }; postPatch = '' # remove advertising substituteInPlace src/FLTK/flgui.cpp \ - --replace 'idata_radio_co_badge, 124, 61, 4,' 'nullptr, 0, 0, 0,' + --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 = [ pkg-config ];