From 7344c032b107c6bd1923e9360d6eb813e69e0451 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Wed, 25 Dec 2024 23:18:43 -0600 Subject: [PATCH 1/2] fastfetch: 2.32.1 -> 2.33.0 --- pkgs/by-name/fa/fastfetch/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/fa/fastfetch/package.nix b/pkgs/by-name/fa/fastfetch/package.nix index 201f546e14fa..3fce4c8275a3 100644 --- a/pkgs/by-name/fa/fastfetch/package.nix +++ b/pkgs/by-name/fa/fastfetch/package.nix @@ -44,13 +44,13 @@ }: stdenv.mkDerivation (finalAttrs: { pname = "fastfetch"; - version = "2.32.1"; + version = "2.33.0"; src = fetchFromGitHub { owner = "fastfetch-cli"; repo = "fastfetch"; rev = finalAttrs.version; - hash = "sha256-EfnHndj7WPXkL7wxGzeigJ7iE2WdgUf74sPDQhob+Ho="; + hash = "sha256-GCUG9b98UmuC/6psDs4PNAoquEWOMz0kl/IBQXRGX5o="; }; outputs = [ From b1d78097a2052388f5a18e6d163d64c3a0551565 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Wed, 25 Dec 2024 23:22:20 -0600 Subject: [PATCH 2/2] fastfetch: disable flashfetch binary by default Upstream doesn't recommend distribution of flashfetch binaries by default. Disabling with new cmake variable for preventing building, but allowing overrides to build it. --- pkgs/by-name/fa/fastfetch/package.nix | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/fa/fastfetch/package.nix b/pkgs/by-name/fa/fastfetch/package.nix index 3fce4c8275a3..99b20250f273 100644 --- a/pkgs/by-name/fa/fastfetch/package.nix +++ b/pkgs/by-name/fa/fastfetch/package.nix @@ -41,6 +41,7 @@ vulkanSupport ? true, waylandSupport ? true, x11Support ? true, + flashfetchSupport ? false, }: stdenv.mkDerivation (finalAttrs: { pname = "fastfetch"; @@ -123,6 +124,7 @@ stdenv.mkDerivation (finalAttrs: { (lib.cmakeBool "ENABLE_XCB_RANDR" x11Support) (lib.cmakeBool "ENABLE_XFCONF" (x11Support && (!stdenv.hostPlatform.isDarwin))) (lib.cmakeBool "ENABLE_XRANDR" x11Support) + (lib.cmakeBool "BUILD_FLASHFETCH" flashfetchSupport) ] ++ lib.optionals stdenv.hostPlatform.isLinux [ (lib.cmakeOptionType "filepath" "CUSTOM_PCI_IDS_PATH" "${hwdata}/share/hwdata/pci.ids") @@ -133,12 +135,15 @@ stdenv.mkDerivation (finalAttrs: { substituteInPlace completions/fastfetch.fish --replace-fail python3 '${python3.interpreter}' ''; - postInstall = '' - wrapProgram $out/bin/fastfetch \ - --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath finalAttrs.buildInputs}" - wrapProgram $out/bin/flashfetch \ - --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath finalAttrs.buildInputs}" - ''; + postInstall = + '' + wrapProgram $out/bin/fastfetch \ + --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath finalAttrs.buildInputs}" + '' + + lib.optionalString flashfetchSupport '' + wrapProgram $out/bin/flashfetch \ + --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath finalAttrs.buildInputs}" + ''; nativeInstallCheckInputs = [ versionCheckHook ]; versionCheckProgramArg = "--version";