Skip to content

Commit f893642

Browse files
curl-impersonate: 1.2.0 -> 1.4.2 (#477365)
2 parents 7b781d7 + 6c762fa commit f893642

File tree

3 files changed

+50
-6
lines changed

3 files changed

+50
-6
lines changed

pkgs/by-name/cu/curl-impersonate/deps.nix

Lines changed: 23 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkgs/by-name/cu/curl-impersonate/package.nix

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
}:
2727
stdenv.mkDerivation rec {
2828
pname = "curl-impersonate";
29-
version = "1.2.0";
29+
version = "1.4.2";
3030

3131
outputs = [
3232
"out"
@@ -37,7 +37,7 @@ stdenv.mkDerivation rec {
3737
owner = "lexiforest";
3838
repo = "curl-impersonate";
3939
tag = "v${version}";
40-
hash = "sha256-tAQdTRGAOD2rpLZvoLQ2YL0wrohXEcmChMZBvYjsMhE=";
40+
hash = "sha256-c24KaYc0cH6b+92kg02mMtTp7ZVu36LeDpW5xjxuzk4=";
4141
};
4242

4343
# Disable blanket -Werror to fix build on `gcc-13` related to minor
@@ -157,6 +157,7 @@ stdenv.mkDerivation rec {
157157
let
158158
libext = stdenv.hostPlatform.extensions.sharedLibrary;
159159
in
160+
# sh
160161
''
161162
# If libnssckbi.so is needed, link libnssckbi.so without needing nss in closure
162163
if grep -F nssckbi $out/lib/libcurl-impersonate${libext} &>/dev/null; then
@@ -165,6 +166,9 @@ stdenv.mkDerivation rec {
165166
patchelf --add-needed libnssckbi${libext} $out/lib/libcurl-impersonate${libext}
166167
''}
167168
fi
169+
170+
# installPhase already installs curl headers in $dev, better to override those
171+
rm -rf "$dev/include/curl"
168172
'';
169173

170174
disallowedReferences = [ go ];
@@ -197,7 +201,7 @@ stdenv.mkDerivation rec {
197201

198202
meta = {
199203
changelog = "https://github.com/lexiforest/curl-impersonate/releases/tag/${src.tag}";
200-
description = "Special build of curl that can impersonate Chrome & Firefox";
204+
description = "Special build of curl that can impersonate Chrome, Edge, Safari and Firefox";
201205
homepage = "https://github.com/lexiforest/curl-impersonate";
202206
license = with lib.licenses; [
203207
curl

pkgs/by-name/cu/curl-impersonate/update.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,26 @@ cat >"$(dirname "$pkgpath")"/deps.nix <<EOF
9999
url = "$(evalvar NGHTTP3_URL "$vars")";
100100
hash = "$(narhash "$(evalvar NGHTTP3_URL "$vars")")";
101101
};
102+
103+
"zlib-$(getvar ZLIB_VERSION "$vars").tar.gz" = fetchurl {
104+
url = "$(evalvar ZLIB_URL "$vars")";
105+
hash = "$(narhash "$(evalvar ZLIB_URL "$vars")")";
106+
};
107+
108+
"zstd-$(getvar ZSTD_VERSION "$vars").tar.gz" = fetchurl {
109+
url = "$(evalvar ZSTD_URL "$vars")";
110+
hash = "$(narhash "$(evalvar ZSTD_URL "$vars")")";
111+
};
112+
113+
"libunistring-$(getvar LIBUNISTRING_VERSION "$vars").tar.gz" = fetchurl {
114+
url = "$(evalvar LIBUNISTRING_URL "$vars")";
115+
hash = "$(narhash "$(evalvar LIBUNISTRING_URL "$vars")")";
116+
};
117+
118+
"libidn2-$(getvar LIBIDN2_VERSION "$vars").tar.gz" = fetchurl {
119+
url = "$(evalvar LIBIDN2_URL "$vars")";
120+
hash = "$(narhash "$(evalvar LIBIDN2_URL "$vars")")";
121+
};
102122
}
103123
EOF
104124

0 commit comments

Comments
 (0)