23 clinfo = lib.getExe clinfo;
24 dmidecode = lib.getExe' dmidecode "dmidecode";
25 eglinfo = lib.getExe' mesa-demos "eglinfo";
26 glxinfo = lib.getExe' mesa-demos "glxinfo";
27 ip = lib.getExe' iproute2 "ip";
28 lsblk = lib.getExe' util-linux "lsblk";
29 lspci = lib.getExe' pciutils "lspci";
30 lscpu = lib.getExe' util-linux "lscpu";
31 pactl = lib.getExe' pulseaudio "pactl";
32 qdbus = lib.getExe' qttools "qdbus";
33 vulkaninfo = lib.getExe' vulkan-tools "vulkaninfo";
34 waylandinfo = lib.getExe wayland-utils;
35 xdpyinfo = lib.getExe xdpyinfo;
39 pname = "kinfocenter";
42 # fwupdmgr is provided through NixOS' module
45 src = ./0001-tool-paths.patch;
52 substituteInPlace kcms/firmware_security/fwupdmgr.sh \
53 --replace-fail " aha " " ${lib.getExe aha} "
56 extraBuildInputs = [ libusb1 ];
58 # fix wrong symlink of infocenter pointing to a 'systemsettings5' binary in
59 # the same directory, while it is actually located in a completely different
62 ln -sf ${systemsettings}/bin/systemsettings $out/bin/kinfocenter
65 # Hardcoded as a QString, which is UTF-16 so Nix can't pick it up automatically
67 mkdir -p $out/nix-support
68 echo "${lib.concatStringsSep ":" (lib.attrValues tools)}" > $out/nix-support/depends
71 meta.mainProgram = "kinfocenter";