mir: 2.20.2 -> 2.21.1 (#423439)

This commit is contained in:
Cosima Neidahl
2025-07-19 12:30:49 +02:00
committed by GitHub
3 changed files with 49 additions and 34 deletions
+6 -6
View File
@@ -2,7 +2,7 @@
stdenv,
lib,
fetchFromGitHub,
gitUpdater,
unstableGitUpdater,
nixosTests,
boost,
cmake,
@@ -30,13 +30,13 @@
stdenv.mkDerivation (finalAttrs: {
pname = "miracle-wm";
version = "0.5.2";
version = "0.5.2-unstable-2025-07-06";
src = fetchFromGitHub {
owner = "miracle-wm-org";
repo = "miracle-wm";
tag = "v${finalAttrs.version}";
hash = "sha256-nmDFmj3DawgjRB0+vlcvPX+kj6lzAu14HySFc2NsJss=";
rev = "859c1e4c97db78872ee799ceb0316c612841ee37";
hash = "sha256-1AZLxD/VyBt60ZHXVN/OpKNigN9NdEBJ9svOOVI0JCI=";
};
postPatch =
@@ -91,7 +91,7 @@ stdenv.mkDerivation (finalAttrs: {
checkPhase = ''
runHook preCheck
./bin/miracle-wm-tests
./tests/miracle-wm-tests
runHook postCheck
'';
@@ -109,7 +109,7 @@ stdenv.mkDerivation (finalAttrs: {
'';
passthru = {
updateScript = gitUpdater { rev-prefix = "v"; };
updateScript = unstableGitUpdater { tagPrefix = "v"; };
providedSessions = [ "miracle-wm" ];
tests.vm = nixosTests.miracle-wm;
};
+34 -26
View File
@@ -26,6 +26,7 @@
lttng-ust,
libgbm,
nettle,
pixman,
udev,
wayland,
wayland-scanner,
@@ -105,32 +106,39 @@ stdenv.mkDerivation (finalAttrs: {
wayland-scanner
];
buildInputs = [
boost
egl-wayland
freetype
glib
glm
libdrm
libepoxy
libevdev
libglvnd
libinput
libuuid
libxcb
libxkbcommon
libxmlxx
yaml-cpp
lttng-ust
libgbm
nettle
udev
wayland
xorg.libX11
xorg.libXcursor
xorg.xorgproto
xwayland
] ++ lib.optionals (lib.strings.versionAtLeast version "2.18.0") [ libapparmor ];
buildInputs =
[
boost
egl-wayland
freetype
glib
glm
libdrm
libepoxy
libevdev
libglvnd
libinput
libuuid
libxcb
libxkbcommon
libxmlxx
yaml-cpp
lttng-ust
libgbm
nettle
udev
wayland
xorg.libX11
xorg.libXcursor
xorg.xorgproto
xwayland
]
++ lib.optionals (lib.strings.versionAtLeast version "2.18.0") [
libapparmor
]
++ lib.optionals (lib.strings.versionAtLeast version "2.21.0") [
pixman
];
nativeCheckInputs = [
dbus
+9 -2
View File
@@ -5,8 +5,15 @@ let
in
{
mir = common {
version = "2.20.2";
hash = "sha256-kxXPRIvgvpWqos8l/fJyHvfJBNi0jOZfV5inY3SBavM=";
version = "2.21.1";
hash = "sha256-FDZ40LiuvMuyWQQGjgOHTm+J3i7yczKMzL3dZ1jsz/E=";
patches = [
(fetchpatch {
name = "0001-Fix-gtest-nodiscard-error.patch";
url = "https://github.com/canonical/mir/commit/60dab2b197deb159087e44865e7314ad2865b79d.patch";
hash = "sha256-fB49E+Wjm2zJnie9Ws+tP0d6lxcG3V/C/UDfy/4iuFU=";
})
];
};
mir_2_15 = common {