mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
qt55: add fixQtModuleCMakeConfig setup hook
This commit is contained in:
parent
a27a4c29ad
commit
ac5a585ed8
2 changed files with 7 additions and 0 deletions
|
@ -42,6 +42,7 @@ let
|
|||
inherit src;
|
||||
|
||||
propagatedBuildInputs = args.qtInputs ++ (args.propagatedBuildInputs or []);
|
||||
nativeBuildInputs = (args.nativeBuildInputs or []) ++ [ self.fixQtModuleCMakeConfig ];
|
||||
|
||||
NIX_QT_SUBMODULE = args.NIX_QT_SUBMODULE or true;
|
||||
dontAddPrefix = args.dontAddPrefix or true;
|
||||
|
@ -113,6 +114,7 @@ let
|
|||
];
|
||||
|
||||
makeQtWrapper = makeSetupHook { deps = [ makeWrapper ]; } ./make-qt-wrapper.sh;
|
||||
fixQtModuleCMakeConfig = makeSetupHook { } ./fix-qt-module-cmake-config.sh;
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
fixQtModuleCMakeConfig() {
|
||||
local module="$1"
|
||||
sed -e "/set(imported_location/ s@\\\${_qt5${module}_install_prefix}@${!outputLib}@" \
|
||||
-i "${!outputDev}/lib/cmake/Qt5${module}/Qt5${module}Config.cmake"
|
||||
}
|
Loading…
Reference in a new issue