From 90a27800292ecf34f2dbdbfc70bf89828b40a573 Mon Sep 17 00:00:00 2001 From: K900 Date: Mon, 1 Jul 2024 20:10:49 +0300 Subject: [PATCH] libreoffice: fix build with Python 3.12 --- pkgs/applications/office/libreoffice/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/applications/office/libreoffice/default.nix b/pkgs/applications/office/libreoffice/default.nix index 81acbb4ed6ae..85ebaf2f79f3 100644 --- a/pkgs/applications/office/libreoffice/default.nix +++ b/pkgs/applications/office/libreoffice/default.nix @@ -274,6 +274,9 @@ in stdenv.mkDerivation (finalAttrs: { substituteInPlace configure.ac --replace-fail \ 'GPGMEPP_CFLAGS=-I/usr/include/gpgme++' \ 'GPGMEPP_CFLAGS=-I${gpgme.dev}/include/gpgme++' + + # Fix for Python 3.12 + substituteInPlace configure.ac --replace-fail distutils.sysconfig sysconfig ''; nativeBuildInputs = [