From dfa87519afd30c8d083b854c1fda67efb3650288 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Federico=20Dami=C3=A1n=20Schonborn?= Date: Mon, 21 Aug 2023 15:11:53 -0300 Subject: [PATCH] fastfetch: 2.0.0 -> 2.0.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Federico Damián Schonborn --- pkgs/tools/misc/fastfetch/default.nix | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/pkgs/tools/misc/fastfetch/default.nix b/pkgs/tools/misc/fastfetch/default.nix index 722f81cb751c..eb914227c47a 100644 --- a/pkgs/tools/misc/fastfetch/default.nix +++ b/pkgs/tools/misc/fastfetch/default.nix @@ -1,11 +1,11 @@ { lib , stdenv , fetchFromGitHub -, fetchpatch , chafa , cmake , dbus , dconf +, ddcutil , glib , imagemagick_light , libglvnd @@ -42,23 +42,15 @@ stdenv.mkDerivation (finalAttrs: { pname = "fastfetch"; - version = "2.0.0"; + version = "2.0.1"; src = fetchFromGitHub { owner = "fastfetch-cli"; repo = "fastfetch"; rev = finalAttrs.version; - hash = "sha256-mXbkzPlX1OsK+ahUSJWktV5D7Mo2zkhXgXP54QjbIR4="; + hash = "sha256-7Sk2Fd9u5c1XLTd9vl32TpD10M1JeB9V05yF/dF+Sfk="; }; - patches = [ - # Don't fetch yyjson. - (fetchpatch { - url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/app-misc/fastfetch/files/fastfetch-2.0.0-dont-fetch-yyjson.patch"; - hash = "sha256-mOykwXSuad8BrUBmjX39EmQb0/hnKezgmWe8cpAybsw="; - }) - ]; - nativeBuildInputs = [ cmake makeBinaryWrapper @@ -74,6 +66,7 @@ stdenv.mkDerivation (finalAttrs: { ++ lib.optionals stdenv.isLinux [ dbus dconf + ddcutil glib libglvnd libpulseaudio @@ -105,6 +98,7 @@ stdenv.mkDerivation (finalAttrs: { cmakeFlags = [ "-DCMAKE_INSTALL_SYSCONFDIR=${placeholder "out"}/etc" + "-DENABLE_SYSTEM_YYJSON=YES" ]; postInstall = '' @@ -127,7 +121,7 @@ stdenv.mkDerivation (finalAttrs: { description = "Like neofetch, but much faster because written in C"; homepage = "https://github.com/fastfetch-cli/fastfetch"; license = lib.licenses.mit; - maintainers = with lib.maintainers; [ gerg-l khaneliman ]; + maintainers = with lib.maintainers; [ gerg-l khaneliman federicoschonborn ]; platforms = lib.platforms.all; mainProgram = "fastfetch"; };