2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake }:
|
2017-10-03 13:43:40 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "cmake-modules-webos";
|
2017-10-03 13:43:40 +02:00
|
|
|
version = "19";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "openwebos";
|
|
|
|
repo = "cmake-modules-webos";
|
|
|
|
rev = "submissions/${version}";
|
|
|
|
sha256 = "1l4hpcmgc98kp9g1642sy111ki5qyk3q7j10xzkgmnvz8lqffnxp";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace CMakeLists.txt --replace "CMAKE_ROOT}/Modules" "CMAKE_INSTALL_PREFIX}/lib/cmake"
|
|
|
|
substituteInPlace webOS/webOS.cmake \
|
|
|
|
--replace ' ''${CMAKE_ROOT}/Modules' " $out/lib/cmake" \
|
|
|
|
--replace 'INSTALL_ROOT}/usr' 'INSTALL_ROOT}'
|
|
|
|
|
|
|
|
sed -i '/CMAKE_INSTALL_PREFIX/d' webOS/webOS.cmake
|
|
|
|
'';
|
|
|
|
|
|
|
|
setupHook = ./cmake-setup-hook.sh;
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-10-03 13:43:40 +02:00
|
|
|
description = "CMake modules needed to build Open WebOS components";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
};
|
|
|
|
}
|