1 #TODO: It should be possible to build this from source, but it's currently a lot faster to just package the binaries.
2 { lib, stdenv, fetchzip, zlib, autoPatchelfHook }:
3 stdenv.mkDerivation rec {
4 pname = "curl-impersonate-bin";
8 url = "https://github.com/lwthiker/curl-impersonate/releases/download/${version}/curl-impersonate-${version}.x86_64-linux-gnu.tar.gz";
9 sha256 = "sha256-+cH1swAIadIrWG9anzf0dcW6qyBjcKsUHFWdv75F49g=";
13 nativeBuildInputs = [ autoPatchelfHook zlib ];
21 description = "curl-impersonate: A special build of curl that can impersonate Chrome & Firefox ";
22 homepage = "https://github.com/lwthiker/curl-impersonate";
23 license = with licenses; [ curl mit ];
24 maintainers = with maintainers; [ deliciouslytyped ];
25 platforms = platforms.linux; #TODO I'm unsure about the restrictions here, feel free to expand the platforms it if it works elsewhere.