diff options
Diffstat (limited to 'pkgs/development/tools/rq')
-rw-r--r-- | pkgs/development/tools/rq/default.nix | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/pkgs/development/tools/rq/default.nix b/pkgs/development/tools/rq/default.nix index 68d3bfce06b..68669e88516 100644 --- a/pkgs/development/tools/rq/default.nix +++ b/pkgs/development/tools/rq/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, fetchFromGitHub, rustPlatform, libiconv, llvmPackages, v8 }: +{ stdenv, lib, fetchFromGitHub, rustPlatform }: rustPlatform.buildRustPackage rec { pname = "rq"; @@ -11,20 +11,19 @@ rustPlatform.buildRustPackage rec { sha256 = "0km9d751jr6c5qy4af6ks7nv3xfn13iqi03wq59a1c73rnf0zinp"; }; - cargoSha256 = "0c5vwy3c5ji602dj64z6jqvcpi2xff03zvjbnwihb3ydqwnb3v67"; + cargoSha256 = "0071q08f75qrxdkbx1b9phqpbj15r79jbh391y32acifi7hr35hj"; - buildInputs = [ llvmPackages.clang-unwrapped v8 ] - ++ lib.optionals stdenv.isDarwin [ libiconv ]; - - configurePhase = '' - export LIBCLANG_PATH="${llvmPackages.clang-unwrapped}/lib" - export V8_SOURCE="${v8}" + 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)]" "" ''; meta = with lib; { description = "A tool for doing record analysis and transformation"; homepage = "https://github.com/dflemstr/rq"; license = with licenses; [ asl20 ]; - maintainers = with maintainers; [ aristid filalex77 ]; + maintainers = with maintainers; [ aristid Br1ght0ne ]; }; } |