globalprotect-openconnect: Fix build failure
CMake versions < 3.5 are no longer supported. Nominally pick the 3.16 as the baseline as it is the highest version supported by the sub-projects. Signed-off-by: Brian McGillion <bmg.avoin@gmail.com>
This commit is contained in:
@@ -24,6 +24,10 @@ stdenv.mkDerivation rec {
|
|||||||
wrapQtAppsHook
|
wrapQtAppsHook
|
||||||
];
|
];
|
||||||
|
|
||||||
|
cmakeFlags = [
|
||||||
|
(lib.cmakeFeature "CMAKE_POLICY_VERSION_MINIMUM" "3.16")
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
openconnect
|
openconnect
|
||||||
qtwebsockets
|
qtwebsockets
|
||||||
@@ -33,9 +37,11 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
substituteInPlace GPService/gpservice.h \
|
substituteInPlace GPService/gpservice.h \
|
||||||
--replace /usr/local/bin/openconnect ${openconnect}/bin/openconnect;
|
--replace-fail /usr/local/bin/openconnect ${openconnect}/bin/openconnect;
|
||||||
substituteInPlace GPService/CMakeLists.txt \
|
substituteInPlace GPService/CMakeLists.txt \
|
||||||
--replace /etc/gpservice $out/etc/gpservice;
|
--replace-fail /etc/gpservice $out/etc/gpservice;
|
||||||
|
# Force minimum CMake version to 3.16 to avoid policy warnings
|
||||||
|
find . -name "CMakeLists.txt" -exec sed -i 's/cmake_minimum_required(VERSION [^)]*)/cmake_minimum_required(VERSION 3.16)/g' {} \;
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|||||||
Reference in New Issue
Block a user