depot/third_party/nixpkgs/pkgs/kde/plasma/kinfocenter/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

29 lines
614 B
Nix

{
lib,
mkKdeDerivation,
substituteAll,
qttools,
xdpyinfo,
systemsettings,
libusb1,
}:
mkKdeDerivation {
pname = "kinfocenter";
patches = [
(substituteAll {
src = ./0001-tool-paths.patch;
qdbus = "${lib.getBin qttools}/bin/qdbus";
xdpyinfo = lib.getExe xdpyinfo;
})
];
# fix wrong symlink of infocenter pointing to a 'systemsettings5' binary in
# the same directory, while it is actually located in a completely different
# store path
preFixup = ''
ln -sf ${systemsettings}/bin/systemsettings $out/bin/kinfocenter
'';
extraBuildInputs = [libusb1];
}