Unverified Commit 0450a76a authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

zed-editor: fix cargo-about 0.7 compatibility (#392319)

parents c1c046cd d0560630
Loading
Loading
Loading
Loading
+11 −5
Original line number Diff line number Diff line
@@ -123,10 +123,16 @@ rustPlatform.buildRustPackage (finalAttrs: {
    "script/patches/use-cross-platform-livekit.patch"
  ];

  postPatch =
    # Dynamically link WebRTC instead of static
  postPatch = ''
    ''
      substituteInPlace $cargoDepsCopy/webrtc-sys-*/build.rs \
        --replace-fail "cargo:rustc-link-lib=static=webrtc" "cargo:rustc-link-lib=dylib=webrtc"
    ''
    # nixpkgs ships cargo-about 0.7, which is a seamless upgrade from 0.6
    + ''
      substituteInPlace script/generate-licenses \
        --replace-fail 'CARGO_ABOUT_VERSION="0.6"' 'CARGO_ABOUT_VERSION="0.7"'
    '';

  useFetchCargoVendor = true;