libsForQt5.extra-cmake-modules: fix for strictDeps (#376831)

This commit is contained in:
K900
2025-02-09 09:32:00 +03:00
committed by GitHub
2 changed files with 18 additions and 0 deletions
@@ -2,6 +2,7 @@
mkDerivation,
lib,
fetchpatch,
bash,
cmake,
pkg-config,
}:
@@ -19,11 +20,22 @@ mkDerivation {
outputs = [ "out" ]; # this package has no runtime components
nativeBuildInputs = [
cmake
];
buildInputs = [
bash
];
# note: these will be propagated into the same list extra-cmake-modules is in
propagatedBuildInputs = [
cmake
pkg-config
];
strictDeps = true;
setupHook = ./setup-hook.sh;
meta = with lib; {
@@ -1,3 +1,9 @@
ecmCMakeFlags() {
appendToVar cmakeFlags "-DECM_DIR=@out@/share/ECM/cmake"
}
preConfigureHooks+=(ecmCMakeFlags)
ecmEnvHook() {
addToSearchPath XDG_DATA_DIRS "$1/share"
addToSearchPath XDG_CONFIG_DIRS "$1/etc/xdg"