Merge pull request #127743 from Artturin/fix-cmake-gui

cmake: add wrapQtAppsHook
This commit is contained in:
Sandro 2021-07-08 11:12:31 +02:00 committed by GitHub
commit 76ba43e445
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,11 +7,11 @@
, useSharedLibraries ? (!isBootstrap && !stdenv.isCygwin)
, useOpenSSL ? !isBootstrap, openssl
, useNcurses ? false, ncurses
, withQt5 ? false, qtbase
, withQt5 ? false, qtbase, wrapQtAppsHook
, buildDocs ? (!isBootstrap && (useNcurses || withQt5)), sphinx, texinfo
}:
stdenv.mkDerivation (rec {
stdenv.mkDerivation rec {
pname = "cmake"
+ lib.optionalString isBootstrap "-boot"
+ lib.optionalString useNcurses "-cursesUI"
@ -45,7 +45,8 @@ stdenv.mkDerivation (rec {
depsBuildBuild = [ buildPackages.stdenv.cc ];
nativeBuildInputs = [ setupHook pkg-config ]
++ lib.optionals buildDocs [ texinfo ];
++ lib.optionals buildDocs [ texinfo ]
++ lib.optionals withQt5 [ wrapQtAppsHook ];
buildInputs = []
++ lib.optionals useSharedLibraries [ bzip2 curlMinimal expat libarchive xz zlib libuv rhash ]
@ -130,5 +131,4 @@ stdenv.mkDerivation (rec {
maintainers = with maintainers; [ ttuegel lnl7 ];
license = licenses.bsd3;
};
} // (if withQt5 then { dontWrapQtApps = true; } else {})
)
}