9 dnsutils, # dig is recommended for multiple categories
10 withRecommends ? false, # Install (almost) all recommended tools (see --recommends)
11 withRecommendedSystemPrograms ? withRecommends,
26 withRecommendedDisplayInformationPrograms ? withRecommends,
32 prefixPath = programs: "--prefix PATH ':' '${lib.makeBinPath programs}'";
33 recommendedSystemPrograms = lib.optionals withRecommendedSystemPrograms [
49 recommendedDisplayInformationPrograms = lib.optionals withRecommendedDisplayInformationPrograms (
62 ++ recommendedSystemPrograms
63 ++ recommendedDisplayInformationPrograms;
65 stdenv.mkDerivation rec {
69 src = fetchFromGitea {
70 domain = "codeberg.org";
74 hash = "sha256-wWG/fs+tZIiFI+dcqfwXeh9RxT2zJDiAZoizhAAu60Q=";
77 nativeBuildInputs = [ makeWrapper ];
78 buildInputs = [ perl ];
83 wrapProgram $out/bin/inxi \
84 --set PERL5LIB "${perlPackages.makePerlPath (with perlPackages; [ CpanelJSONXS ])}" \
85 ${prefixPath programs}
86 mkdir -p $out/share/man/man1
87 cp inxi.1 $out/share/man/man1/
91 description = "Full featured CLI system information tool";
93 inxi is a command line system information script built for console and
94 IRC. It is also used a debugging tool for forum technical support to
95 quickly ascertain users' system configurations and hardware. inxi shows
96 system hardware, CPU, drivers, Xorg, Desktop, Kernel, gcc version(s),
97 Processes, RAM usage, and a wide variety of other useful information.
99 homepage = "https://smxi.org/docs/inxi.htm";
100 changelog = "https://github.com/smxi/inxi/blob/${version}/inxi.changelog";
101 license = licenses.gpl3Plus;
102 platforms = platforms.unix;
104 mainProgram = "inxi";