Merge pull request #39462 from oxij/pkgs/fix-flashrom

flashrom: fix build with gcc7
This commit is contained in:
Wout Mertens 2018-04-25 06:54:07 +02:00 committed by GitHub
commit fefbc047d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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