faf0d3e91d
- Reduce environment pollution with a separate $bin output containing programs, plugins, and shared data. Libraries remain in $out and are not installed into the environment. - Only propagate build inputs as required.
20 lines
527 B
Nix
20 lines
527 B
Nix
{
|
|
mkDerivation, lib,
|
|
extra-cmake-modules,
|
|
kconfig, kcoreaddons, kcrash, kdbusaddons, kservice, kwindowsystem,
|
|
qtbase, qttools, qtx11extras,
|
|
}:
|
|
|
|
mkDerivation {
|
|
name = "kglobalaccel";
|
|
nativeBuildInputs = [ extra-cmake-modules ];
|
|
buildInputs = [
|
|
kconfig kcoreaddons kcrash kdbusaddons kservice kwindowsystem qttools
|
|
qtx11extras
|
|
];
|
|
propagatedBuildInputs = [ qtbase ];
|
|
postPatch = ''
|
|
sed -i src/runtime/org.kde.kglobalaccel.service.in \
|
|
-e "s|@CMAKE_INSTALL_PREFIX@|''${!outputBin}|"
|
|
'';
|
|
}
|