diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/misc/fastfetch/default.nix')
-rw-r--r-- | nixpkgs/pkgs/tools/misc/fastfetch/default.nix | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/nixpkgs/pkgs/tools/misc/fastfetch/default.nix b/nixpkgs/pkgs/tools/misc/fastfetch/default.nix index 722f81cb751c..731cd459d41c 100644 --- a/nixpkgs/pkgs/tools/misc/fastfetch/default.nix +++ b/nixpkgs/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.3"; src = fetchFromGitHub { owner = "fastfetch-cli"; repo = "fastfetch"; rev = finalAttrs.version; - hash = "sha256-mXbkzPlX1OsK+ahUSJWktV5D7Mo2zkhXgXP54QjbIR4="; + hash = "sha256-Zh77m1jezjKJPC8Ua3Uv3w7MIeuLJ6U9WBFzT0uuLSo="; }; - 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"; }; |