From 9d4ca9fda9a41c1b3c21afe6ec2f144a818f940c Mon Sep 17 00:00:00 2001 From: misilelab Date: Sat, 3 May 2025 14:25:50 +0900 Subject: [PATCH] btop: 1.4.1 -> 1.4.2 https://github.com/aristocratos/btop/releases/tag/v1.4.2 Signed-off-by: misilelab --- pkgs/tools/system/btop/default.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/system/btop/default.nix b/pkgs/tools/system/btop/default.nix index fbaf3051d33d..ed950f49084d 100644 --- a/pkgs/tools/system/btop/default.nix +++ b/pkgs/tools/system/btop/default.nix @@ -1,5 +1,6 @@ { lib, + fetchpatch, config, stdenv, fetchFromGitHub, @@ -15,13 +16,13 @@ stdenv.mkDerivation rec { pname = "btop"; - version = "1.4.1"; + version = "1.4.2"; src = fetchFromGitHub { owner = "aristocratos"; repo = pname; rev = "v${version}"; - hash = "sha256-bCcgTi9jG2gM9ZCq4Xc7urOIoSsMwwztEDqKwPB65CE="; + hash = "sha256-qXdIk5Mp4Cxy0//e3SwevreK8VcJwz2vUGSX7nrFvxI="; }; nativeBuildInputs = @@ -38,6 +39,14 @@ stdenv.mkDerivation rec { installFlags = [ "PREFIX=$(out)" ]; + patches = [ + # https://github.com/aristocratos/btop/issues/1138 + (fetchpatch { + url = "https://github.com/aristocratos/btop/commit/c3b225f536a263eb6d35708b1057dd4a6f1524a5.patch"; + sha256 = "sha256-I05stm1mkiBpdNIUzL7cwG3kwcKJSHB7FEtnXxKyazQ="; + }) + ]; + postInstall = '' ${removeReferencesTo}/bin/remove-references-to -t ${stdenv.cc.cc} $(readlink -f $out/bin/btop) '';