Merge pull request #281155 from adamcstephens/btop/1.3.0

btop: 1.2.13 -> 1.3.0
This commit is contained in:
Adam C. Stephens 2024-01-16 07:32:13 -05:00 committed by GitHub
commit 24dd24be39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
{ lib
, stdenv
, fetchFromGitHub
, cmake
, darwin
, removeReferencesTo
, btop
@ -9,23 +10,22 @@
stdenv.mkDerivation rec {
pname = "btop";
version = "1.2.13";
version = "1.3.0";
src = fetchFromGitHub {
owner = "aristocratos";
repo = pname;
rev = "v${version}";
hash = "sha256-F/muCjhcnM+VqAn6FlD4lv23OLITrmtnHkFc5zv97yk=";
hash = "sha256-QQM2/LO/EHovhj+S+4x3ro/aOVrtuxteVVvYAd6feTk=";
};
nativeBuildInputs = [ cmake ];
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk_11_0.frameworks.CoreFoundation
darwin.apple_sdk_11_0.frameworks.IOKit
];
env.ADDFLAGS = lib.optionalString stdenv.isDarwin
"-F${darwin.apple_sdk_11_0.frameworks.IOKit}/Library/Frameworks/";
installFlags = [ "PREFIX=$(out)" ];
postInstall = ''