globalprotect-openconnect: Fix build failure (#449791)
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