Merge pull request #245854 from OPNA2608/update/mir

This commit is contained in:
Artturi 2023-09-11 08:17:14 +03:00 committed by GitHub
commit dd27dcf0fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 31 deletions

View File

@ -2,7 +2,6 @@
, lib , lib
, gitUpdater , gitUpdater
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, cmake , cmake
, pkg-config , pkg-config
, boost , boost
@ -12,25 +11,15 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "wlcs"; pname = "wlcs";
version = "1.5.0"; version = "1.6.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "MirServer"; owner = "MirServer";
repo = "wlcs"; repo = "wlcs";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-QxmWxu+w77/WE5pGXMWXm+NP95QmYo2O8ltZYrgCIWw="; hash = "sha256-+YM5dT45p9wk0gJeATmhWDFJJMaUdcTfw8GLS/vMkw4=";
}; };
patches = [
# Improves pkg-config paths even more
# Remove when https://github.com/MirServer/wlcs/pull/260 merged & in a release
(fetchpatch {
name = "0001-wlcs-pkgsconfig-Use-better-path-concatenations.patch";
url = "https://github.com/MirServer/wlcs/pull/260/commits/20f28d82fa4dfa6a6e27212dbd6b0f2e8a833c69.patch";
hash = "sha256-m8zPD27JbX/vN2YQgNhcRsh/O+qLfvoeky5E5ZEeD1I=";
})
];
nativeBuildInputs = [ nativeBuildInputs = [
cmake cmake
pkg-config pkg-config
@ -42,11 +31,6 @@ stdenv.mkDerivation rec {
wayland wayland
]; ];
env.NIX_CFLAGS_COMPILE = toString [
# Needed with GCC 12
"-Wno-error=maybe-uninitialized"
];
passthru.updateScript = gitUpdater { passthru.updateScript = gitUpdater {
rev-prefix = "v"; rev-prefix = "v";
}; };

View File

@ -1,7 +1,6 @@
{ stdenv { stdenv
, lib , lib
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, gitUpdater , gitUpdater
, testers , testers
, cmake , cmake
@ -41,25 +40,15 @@
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "mir"; pname = "mir";
version = "2.13.0"; version = "2.14.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "MirServer"; owner = "MirServer";
repo = "mir"; repo = "mir";
rev = "v${finalAttrs.version}"; rev = "v${finalAttrs.version}";
hash = "sha256-Ip8p4mjcgmZQJTU4MNvWkTTtSJc+cCL3x1mMDFlZrVY="; hash = "sha256-IEGeZVNxwzHn5GASCyjNuQsnCzzfQBHdC33MWVMeZws=";
}; };
patches = [
# Fixes Mir being able to drop first input device on launch
# Drop when https://github.com/MirServer/mir/issues/2837 fixed in a release
(fetchpatch {
name = "0001-mir-Simplify_probing_of_evdev_input_platform.patch";
url = "https://github.com/MirServer/mir/commit/7787cfa721934bb43d3255218e7c92e700923fcb.patch";
hash = "sha256-9C9qcmngd+K8EAcyOYUJFTdFDu1Nt1MM7Y9TRNOXFB4=";
})
];
postPatch = '' postPatch = ''
# Fix scripts that get run in tests # Fix scripts that get run in tests
patchShebangs tools/detect_fd_leaks.bash tests/acceptance-tests/wayland-generator/test_wayland_generator.sh.in patchShebangs tools/detect_fd_leaks.bash tests/acceptance-tests/wayland-generator/test_wayland_generator.sh.in