webos.cmake-modules, webos.novacom, webos.novacomd: fix build with cmake4
This commit is contained in:
@@ -29,6 +29,13 @@ stdenv.mkDerivation rec {
|
||||
|
||||
setupHook = ./cmake-setup-hook.sh;
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace CMakeLists.txt \
|
||||
--replace-fail "cmake_minimum_required(VERSION 2.8.7)" "cmake_minimum_required(VERSION 3.10)"
|
||||
substituteInPlace webOS/webOS.cmake \
|
||||
--replace-fail "cmake_minimum_required(VERSION 2.8.7)" "cmake_minimum_required(VERSION 3.10)"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "CMake modules needed to build Open WebOS components";
|
||||
license = licenses.asl20;
|
||||
|
||||
@@ -24,6 +24,11 @@ stdenv.mkDerivation rec {
|
||||
webos.cmake-modules
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace CMakeLists.txt \
|
||||
--replace-fail "cmake_minimum_required(VERSION 2.8.7)" "cmake_minimum_required(VERSION 3.10)"
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
install -Dm755 -t $out/bin ../scripts/novaterm
|
||||
substituteInPlace $out/bin/novaterm --replace "exec novacom" "exec $out/bin/novacom"
|
||||
|
||||
@@ -49,6 +49,11 @@ stdenv.mkDerivation rec {
|
||||
|
||||
passthru.tests = { inherit (nixosTests) novacomd; };
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace CMakeLists.txt \
|
||||
--replace-fail "cmake_minimum_required(VERSION 2.8.7)" "cmake_minimum_required(VERSION 3.10)"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Daemon for communicating with WebOS devices";
|
||||
mainProgram = "novacomd";
|
||||
|
||||
Reference in New Issue
Block a user