Merge pull request #277418 from OPNA2608/update/cmake-extras

lomiri.cmake-extras: unstable-2022-11-21 -> 1.7
This commit is contained in:
Bobby Rong 2024-01-02 21:41:07 +08:00 committed by GitHub
commit b639f763cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,21 +5,21 @@
, qtbase
}:
stdenvNoCC.mkDerivation {
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "cmake-extras";
version = "unstable-2022-11-21";
version = "1.7";
src = fetchFromGitLab {
owner = "ubports";
repo = "development/core/cmake-extras";
rev = "99aab4514ee182cb7a94821b4b51e4d8cb9a82ef";
hash = "sha256-axj5QxgDrHy0HiZkfrbm22hVvSCKkWFoQC8MdQMm9tg=";
rev = finalAttrs.version;
hash = "sha256-5bLMk21pSZkuU3jAGTnjPc9ZrvVZqMUWSfFgkTtkYLw=";
};
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)'
--replace '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 \
@ -46,4 +46,4 @@ stdenvNoCC.mkDerivation {
maintainers = teams.lomiri.members;
platforms = platforms.all;
};
}
})