1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 19:51:17 +00:00
nixpkgs/pkgs/kde/plasma/kinfocenter/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

31 lines
650 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];
meta.mainProgram = "kinfocenter";
}