hyfetch: install man pages

This commit is contained in:
NullCube
2025-01-05 04:04:20 -08:00
parent ab4228f500
commit 595fc886d6
+19
View File
@@ -3,12 +3,18 @@
fetchFromGitHub,
python3Packages,
pciutils,
installShellFiles,
}:
python3Packages.buildPythonApplication rec {
pname = "hyfetch";
version = "1.99.0";
pyproject = true;
outputs = [
"out"
"man"
];
src = fetchFromGitHub {
owner = "hykilpikonna";
repo = "hyfetch";
@@ -24,6 +30,10 @@ python3Packages.buildPythonApplication rec {
python3Packages.typing-extensions
];
nativeBuildInputs = [
installShellFiles
];
# No test available
doCheck = false;
@@ -31,6 +41,15 @@ python3Packages.buildPythonApplication rec {
"hyfetch"
];
# NOTE: The HyFetch project maintains an updated version of neofetch renamed
# to "neowofetch" which is included in this package. However, the man page
# included is still named "neofetch", so to prevent conflicts and confusion
# we rename the file to "neowofetch" before installing it:
postInstall = ''
mv ./docs/neofetch.1 ./docs/neowofetch.1
installManPage ./docs/hyfetch.1 ./docs/neowofetch.1
'';
postFixup = ''
wrapProgram $out/bin/neowofetch \
--prefix PATH : ${lib.makeBinPath [ pciutils ]}