mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 10:12:58 +00:00
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.
21 lines
527 B
Nix
21 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}|"
|
|
'';
|
|
}
|