blob: ee5665cd668f3609dd836769173be3a49668104f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
{ stdenvNoCC
, lib
, fetchFromGitLab
, cmake
, qtbase
}:
stdenvNoCC.mkDerivation {
pname = "cmake-extras";
version = "unstable-2022-11-21";
src = fetchFromGitLab {
owner = "ubports";
repo = "development/core/cmake-extras";
rev = "99aab4514ee182cb7a94821b4b51e4d8cb9a82ef";
hash = "sha256-axj5QxgDrHy0HiZkfrbm22hVvSCKkWFoQC8MdQMm9tg=";
};
postPatch = ''
# We have nothing to build here, no need to depend on a C compiler
substituteInPlace CMakeLists.txt \
--replace 'project(cmake-extras)' 'project(cmake-extras NONE)'
# This is in a function that reverse dependencies use to determine where to install their files to
substituteInPlace src/QmlPlugins/QmlPluginsConfig.cmake \
--replace "\''${CMAKE_INSTALL_LIBDIR}/qt5/qml" "\''${CMAKE_INSTALL_PREFIX}/${qtbase.qtQmlPrefix}"
'';
strictDeps = true;
# Produces no binaries
dontWrapQtApps = true;
nativeBuildInputs = [
cmake
];
buildInputs = [
qtbase
];
meta = with lib; {
description = "A collection of add-ons for the CMake build tool";
homepage = "https://gitlab.com/ubports/development/core/cmake-extras/";
license = licenses.gpl3Only;
maintainers = teams.lomiri.members;
platforms = platforms.all;
};
}
|