Unverified Commit 36b678fb authored by kirillrdy's avatar kirillrdy Committed by GitHub
Browse files

rerun: 0.31.3 -> 0.31.4 (#514749)

parents f4939018 7532a870
Loading
Loading
Loading
Loading
+15 −12
Original line number Diff line number Diff line
@@ -35,7 +35,10 @@
}:
rustPlatform.buildRustPackage (finalAttrs: {
  pname = "rerun";
  version = "0.31.3";
  version = "0.31.4";

  __structuredAttrs = true;
  strictDeps = true;

  outputs = [
    "out"
@@ -46,7 +49,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
    owner = "rerun-io";
    repo = "rerun";
    tag = finalAttrs.version;
    hash = "sha256-ApGrW3E7r5lulBNB89HCP/WKBtwV7OABueQxqElF6rs=";
    hash = "sha256-gbN9aplPw+U4liGDU7Z0x+ySfxr+RlyriEkDsIA8gHA=";
  };

  # The path in `build.rs` is wrong for some reason, so we patch it to make the passthru tests work
@@ -55,7 +58,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
      --replace-fail '"rerun_sdk/rerun_cli/rerun"' '"rerun_sdk/rerun"'
  '';

  cargoHash = "sha256-JpYKJ8LRAMTy8TPQ2tk5o9b6Z2sgTkSVwULoCO3fYSk=";
  cargoHash = "sha256-N5JeZMbGy9FSiluE1MAtvg97dUq3ZoUZdABwORUlWlA=";

  cargoBuildFlags = [
    "--package"
@@ -83,19 +86,19 @@ rustPlatform.buildRustPackage (finalAttrs: {
  # Note that cargoBuildFeatures reference what buildFeatures is set to in stdenv.mkDerivation,
  # so that user can easily create an overlay to set cargoBuildFeatures to what he needs
  preBuild = ''
    if [[ " $cargoBuildFeatures " == *" web_viewer "* ]]; then
      # transform the environment variable that is a space separated list into a comma separated list
      buildWebViewerFeatures=$(echo $buildWebViewerFeatures | tr ' ' ',')
    if [[ " ''${cargoBuildFeatures[*]} " == *" web_viewer "* ]]; then
      # join the bash array into a comma-separated list for cargo's --features flag
      buildWebViewerFeaturesJoined=$(IFS=,; echo "''${buildWebViewerFeatures[*]}")
      # Create the features option only if there are features to pass
      buildWebViewerFeaturesCargoOption=""
      if [[ ! -z "$buildWebViewerFeatures" ]]; then
        buildWebViewerFeaturesCargoOption="--features $buildWebViewerFeatures"
        echo "Features passed to the web viewer build: $buildWebViewerFeatures"
      buildWebViewerFeaturesCargoOption=()
      if [[ -n "$buildWebViewerFeaturesJoined" ]]; then
        buildWebViewerFeaturesCargoOption=("--features" "$buildWebViewerFeaturesJoined")
        echo "Features passed to the web viewer build: $buildWebViewerFeaturesJoined"
      else
        echo "No features will be passed to the web viewer build"
      fi
      echo "Building the wasm web viewer for rerun's web_viewer feature"
      cargo run -p re_dev_tools -- build-web-viewer --no-default-features $buildWebViewerFeaturesCargoOption --release -g
      cargo run -p re_dev_tools -- build-web-viewer --no-default-features "''${buildWebViewerFeaturesCargoOption[@]}" --release -g
    else
      echo "web_viewer feature not enabled, skipping web viewer build."
    fi
@@ -159,7 +162,7 @@ rustPlatform.buildRustPackage (finalAttrs: {

    while IFS= read -r -d $'\0' path ; do
      elfHasDynamicSection "$path" || continue
      for dep in $addDlopenRunpaths ; do
      for dep in "''${addDlopenRunpaths[@]}" ; do
        patchelf "$path" --add-rpath "$dep"
      done
    done < <(
+1 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@
buildPythonPackage {
  pname = "rerun-sdk";
  pyproject = true;
  __structuredAttrs = true;

  inherit (rerun)
    src