about summary refs log tree commit diff
path: root/nixpkgs/pkgs/kde/plasma/kinfocenter/default.nix
blob: cc216dd22a7b5688b172512aec07e43247d8b3ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
  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];
}