Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

52 lines
1.4 KiB
Nix

{
stdenvNoCC,
lib,
fetchFromGitLab,
cmake,
qtbase,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "cmake-extras";
version = "1.9";
src = fetchFromGitLab {
owner = "ubports";
repo = "development/core/cmake-extras";
tag = finalAttrs.version;
hash = "sha256-7dIuQ2SdtpG93cPZTmoxXUCwFhsq11gmg4OJlGTQ3VY=";
};
postPatch = ''
# We have nothing to build here, no need to depend on a C compiler
substituteInPlace CMakeLists.txt \
--replace-fail 'project(cmake-extras' 'project(cmake-extras LANGUAGES NONE'
# This is in a function that reverse dependencies use to determine where to install their files to
substituteInPlace src/QmlPlugins/QmlPluginsConfig.cmake \
--replace-fail "\''${CMAKE_INSTALL_LIBDIR}/qt\''${QT_VERSION_MAJOR}/qml" "\''${CMAKE_INSTALL_PREFIX}/${qtbase.qtQmlPrefix}"
'';
strictDeps = true;
# Produces no binaries
dontWrapQtApps = true;
nativeBuildInputs = [
cmake
];
buildInputs = [
qtbase
];
meta = {
description = "Collection of add-ons for the CMake build tool";
homepage = "https://gitlab.com/ubports/development/core/cmake-extras";
changelog = "https://gitlab.com/ubports/development/core/cmake-extras/-/blob/${finalAttrs.version}/ChangeLog";
license = lib.licenses.gpl3Only;
teams = [ lib.teams.lomiri ];
platforms = lib.platforms.all;
};
})