fastfetch: 2.32.1 -> 2.33.0; disable flashfetch binary by default (#368254)

This commit is contained in:
Austin Horstman
2024-12-26 07:36:47 -06:00
committed by GitHub

View File

@@ -41,16 +41,17 @@
vulkanSupport ? true,
waylandSupport ? true,
x11Support ? true,
flashfetchSupport ? false,
}:
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 = [
@@ -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";