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;
|
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; {
|
meta = with lib; {
|
||||||
description = "CMake modules needed to build Open WebOS components";
|
description = "CMake modules needed to build Open WebOS components";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
|
|||||||
@@ -24,6 +24,11 @@ stdenv.mkDerivation rec {
|
|||||||
webos.cmake-modules
|
webos.cmake-modules
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace CMakeLists.txt \
|
||||||
|
--replace-fail "cmake_minimum_required(VERSION 2.8.7)" "cmake_minimum_required(VERSION 3.10)"
|
||||||
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
install -Dm755 -t $out/bin ../scripts/novaterm
|
install -Dm755 -t $out/bin ../scripts/novaterm
|
||||||
substituteInPlace $out/bin/novaterm --replace "exec novacom" "exec $out/bin/novacom"
|
substituteInPlace $out/bin/novaterm --replace "exec novacom" "exec $out/bin/novacom"
|
||||||
|
|||||||
@@ -49,6 +49,11 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
passthru.tests = { inherit (nixosTests) novacomd; };
|
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; {
|
meta = with lib; {
|
||||||
description = "Daemon for communicating with WebOS devices";
|
description = "Daemon for communicating with WebOS devices";
|
||||||
mainProgram = "novacomd";
|
mainProgram = "novacomd";
|
||||||
|
|||||||
Reference in New Issue
Block a user