about summary refs log tree commit diff
path: root/pkgs/development/tools/rq
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2021-05-13 18:32:50 +0000
committerGitHub <noreply@github.com>2021-05-13 18:32:50 +0000
commit39e3f7c2cc3d5ad71561136df41beca52bfa35c6 (patch)
tree98760dd9a608b25aadb2256f9cede7aacd9a73da /pkgs/development/tools/rq
parent74655944285aadf77fd7b36612b39fd5df411338 (diff)
parent48c25a9eaf149527c0c5d12ddfd91e39a520b522 (diff)
Merge master into staging-next
Diffstat (limited to 'pkgs/development/tools/rq')
-rw-r--r--pkgs/development/tools/rq/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/development/tools/rq/default.nix b/pkgs/development/tools/rq/default.nix
index 3922bcb32605e..c9e78650f607f 100644
--- a/pkgs/development/tools/rq/default.nix
+++ b/pkgs/development/tools/rq/default.nix
@@ -11,6 +11,13 @@ rustPlatform.buildRustPackage rec {
     sha256 = "0km9d751jr6c5qy4af6ks7nv3xfn13iqi03wq59a1c73rnf0zinp";
   };
 
+  postPatch = ''
+    # Remove #[deny(warnings)] which is equivalent to -Werror in C.
+    # Prevents build failures when upgrading rustc, which may give more warnings.
+    substituteInPlace src/lib.rs \
+      --replace "#![deny(warnings)]" ""
+  '';
+
   cargoSha256 = "0c5vwy3c5ji602dj64z6jqvcpi2xff03zvjbnwihb3ydqwnb3v67";
 
   buildInputs = [ llvmPackages.libclang v8 ]