commit a1b0a10fcfbfc829efff57e59d05a6da27ae5595 Author: Ophestra Date: Wed Jul 1 21:24:24 2026 +0900 fastfetch: init diff --git a/fastfetch/fastfetch-rosa.patch b/fastfetch/fastfetch-rosa.patch new file mode 100644 index 0000000..603c089 --- /dev/null +++ b/fastfetch/fastfetch-rosa.patch @@ -0,0 +1,79 @@ +diff --git a/src/detection/os/os_linux.c b/src/detection/os/os_linux.c +index f6223e5c..88fd3db8 100644 +--- a/src/detection/os/os_linux.c ++++ b/src/detection/os/os_linux.c +@@ -7,6 +7,7 @@ + + #include + #include ++#include + + #define FF_STR_INDIR(x) #x + #define FF_STR(x) FF_STR_INDIR(x) +@@ -343,6 +344,18 @@ static void detectOS(FFOSResult* os) { + #endif + + #ifdef __linux__ ++ char buf[64] = { 0 }; ++ if (readlink("/system/bin/linker", buf, 64) != -1 // Ignore errno. ++ && strcmp(buf, "../lib/libc.so") == 0 // NUL-terminated by zero-initialization. ++ && access("/lib", F_OK) == -1 ++ && access("/lib64", F_OK) == -1) { ++ ffStrbufSetS(&os->id, "rosaos"); ++ ffStrbufSetS(&os->idLike, "rosaos"); ++ ffStrbufSetS(&os->name, "Rosa OS"); ++ ffStrbufSetS(&os->prettyName, "Rosa OS"); ++ return; ++ } ++ + if (detectBedrock(os)) { + return; + } +diff --git a/src/logo/ascii/rosaos.txt b/src/logo/ascii/rosaos.txt +new file mode 100644 +index 00000000..a821bff9 +--- /dev/null ++++ b/src/logo/ascii/rosaos.txt +@@ -0,0 +1,21 @@ ++$1 ++ .::::::. ++ .:. .::::::::::::. ++ .::::) .:::(( (:::: ++ .::::)::::) :::::.. .: .. ++ ::::) :::) .:(:::: <. (< :::. ++ .::: .::: .:(. :. :. ::::. ++ .::(:::^ ::- := :: . .::::. ++ :. .:: ::(::::::::. .:. :. ::::: ++.-::. . >.(:::::::. .:. .::. ::::: ++:::::. .::::+ )( .:::: ::::- ++::::::. :::::::: .-:::: ++::::::: .::::::::::::::::::) ::::::. ++::::::( .::::::::::::::::::. ::::::: ++.::::::. .::::::::::::::) .:::::::: ++ .::::::::. :::::::::::( .:::::::) ++ )::::::::::: (:::::() :::::::::) ++ )(::::::.. :::::::::) ++ .::::::::::) ++ *:::::::::) ++ <*::::. +diff --git a/src/logo/builtin.c b/src/logo/builtin.c +index 1775a627..d94e212d 100644 +--- a/src/logo/builtin.c ++++ b/src/logo/builtin.c +@@ -4461,6 +4461,16 @@ static const FFlogo R[] = { + .colorKeys = FF_COLOR_FG_RGB "100;165;225", + .colorTitle = FF_COLOR_FG_RGB "100;165;225", + }, ++ // Rosa OS ++ { ++ .names = {"rosaos", "rosa-os"}, ++ .lines = FASTFETCH_DATATEXT_LOGO_ROSAOS, ++ .colors = { ++ FF_COLOR_FG_RGB "71;215;247", ++ }, ++ .colorKeys = FF_COLOR_FG_RGB "71;215;247", ++ .colorTitle = FF_COLOR_FG_RGB "71;215;247", ++ }, + // RhinoLinux + { + .names = { "Rhino Linux" }, diff --git a/fastfetch/package.az b/fastfetch/package.az new file mode 100644 index 0000000..108e77c --- /dev/null +++ b/fastfetch/package.az @@ -0,0 +1,29 @@ +package fastfetch { + description = "for fetching system information and displaying it in a visually appealing way"; + website = "https://github.com/fastfetch-cli/fastfetch"; + anitya = 279670; + block = "patch is fragile"; + + version# = "2.63.1"; + source = remoteGitHub { + suffix = "fastfetch-cli/fastfetch"; + tag = version; + checksum = "u5qADQuQf29lykMWj97Rugb27EmIP0BWcDGQnUHh5k4f4UfniYyaLNEwEnnJ2-3L"; + }; + patches = [ "fastfetch-rosa.patch" ]; + + exec = cmake { + cache = { + "BUILD_TESTS": "ON"; + "SET_TWEAK": "OFF"; + "IS_MUSL": "ON"; + }; + }; + + inputs = [ + pkg-config, + python, + + kernel-headers, + ]; +}