Skip to content

Commit

Permalink
hplip: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Bot-wxt1221 committed Dec 27, 2024
1 parent 7cc0bff commit a89443a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pkgs/by-name/hp/hplip/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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=";
})
];

Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit a89443a

Please sign in to comment.