diff options
author | Wout Mertens <Wout.Mertens@gmail.com> | 2018-04-25 06:54:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-25 06:54:07 +0200 |
commit | fefbc047d23c1a4b4f00c1a009edb56075e995ab (patch) | |
tree | 143f74106424acc1dba99f43ea158490d79babf8 | |
parent | 656f69bea5b5cdbb1a25192b89448e43952aeba4 (diff) | |
parent | bd1d0e02922d0d18a3e4d99a82bdf8c6db23055d (diff) | |
download | nixlib-fefbc047d23c1a4b4f00c1a009edb56075e995ab.tar nixlib-fefbc047d23c1a4b4f00c1a009edb56075e995ab.tar.gz nixlib-fefbc047d23c1a4b4f00c1a009edb56075e995ab.tar.bz2 nixlib-fefbc047d23c1a4b4f00c1a009edb56075e995ab.tar.lz nixlib-fefbc047d23c1a4b4f00c1a009edb56075e995ab.tar.xz nixlib-fefbc047d23c1a4b4f00c1a009edb56075e995ab.tar.zst nixlib-fefbc047d23c1a4b4f00c1a009edb56075e995ab.zip |
Merge pull request #39462 from oxij/pkgs/fix-flashrom
flashrom: fix build with gcc7
-rw-r--r-- | pkgs/tools/misc/flashrom/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/tools/misc/flashrom/default.nix b/pkgs/tools/misc/flashrom/default.nix index b1e093126584..1bdab1e841f8 100644 --- a/pkgs/tools/misc/flashrom/default.nix +++ b/pkgs/tools/misc/flashrom/default.nix @@ -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 ]; |