From 0c873307ae2661a454905a16239d2d2b78af4898 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Thu, 7 Mar 2024 12:04:05 +0100 Subject: [PATCH] Add no compressed specific overlay --- no-compressed.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/no-compressed.nix b/no-compressed.nix index f365e95..623cc37 100644 --- a/no-compressed.nix +++ b/no-compressed.nix @@ -20,4 +20,16 @@ EFI n ''; } ]; + + nixpkgs.overlays = [ + (final: prev: { + # Fix GCC 13 format-overflow warning/error: + # ../src/shared/install.c:444:64: error: ā€˜%sā€™ directive argument is null [-Werror=format-overflow=] + # 444 | err = log_error_errno(changes[i].type, "Failed to %s unit, unit %s does not exist.", + # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + systemd = prev.systemd.overrideAttrs (old: { + CFLAGS = "-Wno-error=format-overflow"; + }); + }) + ]; }