flashrom: fix build with gcc7

This commit is contained in:
Jan Malakhovski 2018-04-25 02:45:58 +00:00
parent 7e33e374db
commit bd1d0e0292

View file

@ -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 ];