Unverified Commit f0d153ba authored by Stefan Frijters's avatar Stefan Frijters
Browse files

cargo-geiger: fix build

Unused import warnings are errors.
parent 26d344c7
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -26,6 +26,13 @@ rustPlatform.buildRustPackage rec {

  cargoHash = "sha256-GgCmUNOwvyTB82Y/ddgJIAb1SpO4mRPjECqCagJ8GmE=";

  postPatch = ''
    # https://github.com/geiger-rs/cargo-geiger/pull/562
    # Fix unused import warning which is treated as an error
    substituteInPlace cargo-geiger/tests/integration_tests.rs \
      --replace-fail "use std::env;" ""
  '';

  buildInputs = [
    openssl
  ]