From 3c15cf428e5f27daaa05f6aeeff295f3347cfe0b Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Fri, 12 Jan 2024 22:44:42 +0100 Subject: [PATCH] lomiri.lomiri-api: Apply patch for GCC13 support --- pkgs/desktops/lomiri/development/lomiri-api/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/desktops/lomiri/development/lomiri-api/default.nix b/pkgs/desktops/lomiri/development/lomiri-api/default.nix index f4a7c968c66f..9f699bbd715a 100644 --- a/pkgs/desktops/lomiri/development/lomiri-api/default.nix +++ b/pkgs/desktops/lomiri/development/lomiri-api/default.nix @@ -1,6 +1,7 @@ { stdenv , lib , fetchFromGitLab +, fetchpatch , gitUpdater , makeFontsConf , testers @@ -31,6 +32,14 @@ stdenv.mkDerivation (finalAttrs: { outputs = [ "out" "dev" "doc" ]; + patches = [ + (fetchpatch { + name = "0001-lomiri-api-Add-missing-headers-for-GCC13.patch"; + url = "https://gitlab.com/ubports/development/core/lomiri-api/-/commit/029b42a9b4d5467951595dff8bc536eb5a9e3ef7.patch"; + hash = "sha256-eWrDQGrwf22X49rtUAVbrd+QN+OwyGacVLCWYFsS02o="; + }) + ]; + postPatch = '' patchShebangs $(find test -name '*.py')