git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #39462 from oxij/pkgs/fix-flashrom
fefbc04Wout Mertens
pkgs/tools/misc/flashrom/default.nix+6
@@ -9,6 +9,12 @@ stdenv.mkDerivation rec {
9 sha256 = "0i9wg1lyfg99bld7d00zqjm9f0lk6m0q3h3n9c195c9yysq5ccfb";
9 sha256 = "0i9wg1lyfg99bld7d00zqjm9f0lk6m0q3h3n9c195c9yysq5ccfb";
10 };
10 };
11
11
12+ # Newer versions of libusb deprecate some API flashrom uses.
13+ postPatch = ''
14+ substituteInPlace Makefile \
15+ --replace "-Werror" "-Werror -Wno-error=deprecated-declarations -Wno-error=unused-const-variable="
16+ '';
17+
12 nativeBuildInputs = [ pkgconfig ];
18 nativeBuildInputs = [ pkgconfig ];
13 buildInputs = [ libftdi pciutils ];
19 buildInputs = [ libftdi pciutils ];
14
20