mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
flashrom: fix build with gcc7
This commit is contained in:
parent
7e33e374db
commit
bd1d0e0292
|
@ -9,6 +9,12 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "0i9wg1lyfg99bld7d00zqjm9f0lk6m0q3h3n9c195c9yysq5ccfb";
|
||||
};
|
||||
|
||||
# Newer versions of libusb deprecate some API flashrom uses.
|
||||
postPatch = ''
|
||||
substituteInPlace Makefile \
|
||||
--replace "-Werror" "-Werror -Wno-error=deprecated-declarations -Wno-error=unused-const-variable="
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
buildInputs = [ libftdi pciutils ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue