miracle-wm: 0.6.2 -> 0.6.2-unstable-2025-08-27

Fixes compatibility with Mir 2.22.0
This commit is contained in:
OPNA2608
2025-08-27 16:07:41 +02:00
parent 776a05d88a
commit b864ff4112
+9 -6
View File
@@ -2,7 +2,7 @@
stdenv,
lib,
fetchFromGitHub,
gitUpdater,
unstableGitUpdater,
nixosTests,
boost,
cmake,
@@ -31,20 +31,19 @@
stdenv.mkDerivation (finalAttrs: {
pname = "miracle-wm";
version = "0.6.2";
version = "0.6.2-unstable-2025-08-27";
src = fetchFromGitHub {
owner = "miracle-wm-org";
repo = "miracle-wm";
tag = "v${finalAttrs.version}";
hash = "sha256-zUqW21gZC7J/E0cld11N6OyclpgKCh4F7m/soBi3N1E=";
rev = "0a55a023adf511b042f922aeba666744805be988";
hash = "sha256-yf7knY1tNFeCwePsfTAMAxIma+ZeZUvqpMJe7ABahEw=";
};
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail 'DESTINATION /usr/lib' 'DESTINATION ''${CMAKE_INSTALL_LIBDIR}' \
--replace-fail '-march=native' '# -march=native' \
--replace-fail '-flto' '# -flto'
''
+ lib.optionalString (!finalAttrs.finalPackage.doCheck) ''
substituteInPlace CMakeLists.txt \
@@ -89,7 +88,9 @@ stdenv.mkDerivation (finalAttrs: {
checkInputs = [ gtest ];
cmakeFlags = [
(lib.cmakeBool "ENABLE_LTO" true)
(lib.cmakeBool "SYSTEMD_INTEGRATION" true)
(lib.cmakeBool "END_TO_END_TESTS" finalAttrs.finalPackage.doCheck)
];
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
@@ -97,6 +98,8 @@ stdenv.mkDerivation (finalAttrs: {
checkPhase = ''
runHook preCheck
export XDG_RUNTIME_DIR=$TMP
./tests/miracle-wm-tests
runHook postCheck
@@ -115,7 +118,7 @@ stdenv.mkDerivation (finalAttrs: {
'';
passthru = {
updateScript = gitUpdater { rev-prefix = "v"; };
updateScript = unstableGitUpdater { tagPrefix = "v"; };
providedSessions = [ "miracle-wm" ];
tests.vm = nixosTests.miracle-wm;
};