From a89443a702183853acf237a8070ba3e8e9a65494 Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Fri, 27 Dec 2024 17:02:00 +0800 Subject: [PATCH] hplip: fix build --- pkgs/by-name/hp/hplip/package.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/hp/hplip/package.nix b/pkgs/by-name/hp/hplip/package.nix index e1b96e2f233bd..537bfcc98a73d 100644 --- a/pkgs/by-name/hp/hplip/package.nix +++ b/pkgs/by-name/hp/hplip/package.nix @@ -142,7 +142,7 @@ python311Packages.buildPythonApplication { # Remove all ImageProcessor functionality since that is closed source (fetchurl { url = "https://web.archive.org/web/20230226174550/https://sources.debian.org/data/main/h/hplip/3.22.10+dfsg0-1/debian/patches/0028-Remove-ImageProcessor-binary-installs.patch"; - sha256 = "sha256:18njrq5wrf3fi4lnpd1jqmaqr7ph5d7jxm7f15b1wwrbxir1rmml"; + hash = "sha256-tNYccuwrcx5WCe7ULk8r8J6MVcUytGspiW64zAvO0qI="; }) ]; @@ -224,6 +224,14 @@ python311Packages.buildPythonApplication { enableParallelBuilding = true; enableParallelInstalling = false; + env = { + NIX_CFLAGS_COMPILE = toString [ + "-Wno-error=implicit-int" + "-Wno-error=implicit-function-declaration" + "-Wno-error=return-mismatch" + ]; + }; + # # Running `hp-diagnose_plugin -g` can be used to diagnose # issues with plugins.