Skip to content

Commit

Permalink
media-sound/netease-cloud-music-gtk: make isahc use system curl
Browse files Browse the repository at this point in the history
  • Loading branch information
Goldsrc233 committed Jan 8, 2025
1 parent 7108272 commit db59c16
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/Cargo.toml b/Cargo.toml
index 27f8d74..491fac0 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -6,7 +6,7 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
-isahc = { version = "^1", features = ["cookies"] }
+isahc = { version = "^1", default-features = false, features = ["cookies", "http2", "text-decoding"] }
lazy_static = "*"
regex = "*"
urlqstring = "*"
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,10 @@ src_prepare() {

sed -i -E "s#${ncm_api_git}#${ncm_api_path}#g" "${S}/Cargo.toml" || die "ncm-api workaround failed"

pushd "${WORKDIR}/netease-cloud-music-api-${NCM_API_COMMIT}" > /dev/null || die
eapply "${FILESDIR}/isahc-disable-static-curl.patch"
popd > /dev/null || die

default
}

Expand Down

0 comments on commit db59c16

Please sign in to comment.