Unverified Commit 11c03685 authored by Heitor Augusto's avatar Heitor Augusto Committed by GitHub
Browse files

iwe: 0.0.64 -> 0.0.67 (#508044)

parents c583d0de a2d3b3dd
Loading
Loading
Loading
Loading
+3 −11
Original line number Diff line number Diff line
@@ -8,16 +8,16 @@
}:
rustPlatform.buildRustPackage (finalAttrs: {
  pname = "iwe";
  version = "0.0.64";
  version = "0.0.67";

  src = fetchFromGitHub {
    owner = "iwe-org";
    repo = "iwe";
    tag = "iwe-v${finalAttrs.version}";
    hash = "sha256-aqoUTatYUUFKw3ZQYagQ0KchQM3JMgSzL/hG6CiyG9U=";
    hash = "sha256-/irCQgMDuO2boitdTyl4OlkMvuyFPfsTx8Jo/VhLYuw=";
  };

  cargoHash = "sha256-iTudRDC53wZvWwuPYGG3rQfsC/th+3FwpiqZsZnbekg=";
  cargoHash = "sha256-oAIF+ekKzvfT7WzQ+PE4RWUUMMDkBOFBdgwUMXBZsFk=";

  cargoBuildFlags = [
    "--package=iwe"
@@ -28,14 +28,6 @@ rustPlatform.buildRustPackage (finalAttrs: {
    substituteInPlace crates/iwe/tests/common.rs --replace-fail \
      'binary_path.push("target");' \
      'binary_path.push("target/${stdenv.hostPlatform.rust.rustcTarget}");'

    # Tests here are looking for /usr to exist, which is not present in a build environment
    substituteInPlace crates/iwes/tests/transform_test.rs --replace-fail \
      'cwd: Some("/usr".to_string()),' \
      'cwd: Some("/tmp".to_string()),'
    substituteInPlace crates/iwes/tests/transform_test.rs --replace-fail \
      'vec![uri(1).to_edit("/usr\n")]' \
      'vec![uri(1).to_edit("/tmp\n")]'
  '';

  nativeInstallCheckInputs = [ versionCheckHook ];