Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Vindicus999
2026-03-18 02:35:27 +00:00
3 changed files with 8 additions and 4 deletions
+2
View File
@@ -141,6 +141,8 @@ jobs:
-DFETCHCONTENT_BASE_DIR=${{github.workspace}}/cmake-fetch -DFETCHCONTENT_BASE_DIR=${{github.workspace}}/cmake-fetch
--preset dashboard --preset dashboard
-DWIVRN_USE_SYSTEM_OPENXR=OFF -DWIVRN_USE_SYSTEM_OPENXR=OFF
-DGIT_DESC=${{github.sha}}
-DGIT_COMMIT=${{github.sha}}
- name: Build - name: Build
# Build your program with the given configuration # Build your program with the given configuration
+2 -4
View File
@@ -20,15 +20,13 @@ if (NOT GIT_COMMIT)
endif() endif()
if (NOT GIT_DESC) if (NOT GIT_DESC)
set(GIT_DESC v${CMAKE_PROJECT_VERSION}) message(FATAL_ERROR "GIT_DESC cannot be inferred from .git and was not provided at build time")
message(STATUS "Setting version to ${GIT_DESC} from CMakeLists")
endif() endif()
if (GIT_COMMIT) if (GIT_COMMIT)
message(STATUS "Setting commit to ${GIT_COMMIT}") message(STATUS "Setting commit to ${GIT_COMMIT}")
else() else()
set(GIT_COMMIT "") message(FATAL_ERROR "GIT_COMMIT cannot be inferred from .git and was not provided at build time")
message(STATUS "Not setting commit")
endif() endif()
configure_file(${INPUT_FILE} ${OUTPUT_FILE}) configure_file(${INPUT_FILE} ${OUTPUT_FILE})
+4
View File
@@ -64,6 +64,10 @@
buildInputs = oldAttrs.buildInputs ++ extraBuildInputs; buildInputs = oldAttrs.buildInputs ++ extraBuildInputs;
nativeBuildInputs = oldAttrs.nativeBuildInputs ++ extraNativeBuildInputs; nativeBuildInputs = oldAttrs.nativeBuildInputs ++ extraNativeBuildInputs;
cmakeFlags = (oldAttrs.cmakeFlags or []) ++ [
(lib.cmakeFeature "GIT_DESC" "nightly")
(lib.cmakeFeature "GIT_COMMIT" "nightly")
];
})); }));
in { in {
packages = { packages = {