summary refs log tree commit diff
path: root/pkgs/development/tools/rq
diff options
context:
space:
mode:
authorRick van Schijndel <rol3517@gmail.com>2021-05-02 22:30:41 +0200
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-05-13 09:55:10 -0700
commit7693c5d59b01a50c4cb2c20c741f505c84f34677 (patch)
treeea2df6a924034a464c3a5cc3de72569758faea82 /pkgs/development/tools/rq
parent99c0fb9059be2986eb443ae8700f5d4b9d23f53f (diff)
downloadnixpkgs-7693c5d59b01a50c4cb2c20c741f505c84f34677.tar
nixpkgs-7693c5d59b01a50c4cb2c20c741f505c84f34677.tar.gz
nixpkgs-7693c5d59b01a50c4cb2c20c741f505c84f34677.tar.bz2
nixpkgs-7693c5d59b01a50c4cb2c20c741f505c84f34677.tar.lz
nixpkgs-7693c5d59b01a50c4cb2c20c741f505c84f34677.tar.xz
nixpkgs-7693c5d59b01a50c4cb2c20c741f505c84f34677.tar.zst
nixpkgs-7693c5d59b01a50c4cb2c20c741f505c84f34677.zip
rq: remove #[deny(warnings)] to reduce chance of build failures with rustc update
This fixes a build failure due to an added warning.
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 838740d1fd0..4dcc0b31563 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.clang-unwrapped v8 ]