rq: remove #[deny(warnings)] to reduce chance of build failures with rustc update
This fixes a build failure due to an added warning.
commit7693c5d59b01a50c4cb2c20c741f505c84f34677
authorRick van Schijndel <rol3517@gmail.com>
dateSun 2 May 2021, 22:30 (6 years ago)
parent99c0fb9
pkgs/development/tools/rq/default.nix+7
@@ -11,6 +11,13 @@ rustPlatform.buildRustPackage rec {
1111 sha256 = "0km9d751jr6c5qy4af6ks7nv3xfn13iqi03wq59a1c73rnf0zinp";
1212 };
1313
14+ postPatch = ''
15+ # Remove #[deny(warnings)] which is equivalent to -Werror in C.
16+ # Prevents build failures when upgrading rustc, which may give more warnings.
17+ substituteInPlace src/lib.rs \
18+ --replace "#![deny(warnings)]" ""
19+ '';
20+
1421 cargoSha256 = "0c5vwy3c5ji602dj64z6jqvcpi2xff03zvjbnwihb3ydqwnb3v67";
1522
1623 buildInputs = [ llvmPackages.clang-unwrapped v8 ]