mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
Merge pull request #39462 from oxij/pkgs/fix-flashrom
flashrom: fix build with gcc7
This commit is contained in:
commit
fefbc047d2
@ -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 New Issue
Block a user