python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / networking / curl-impersonate / default.nix
blobe00b1a77ef2bbd529127772de53fa0a82cdf6f42
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";
5   version = "v0.5.3";
7   src = fetchzip {
8     url = "https://github.com/lwthiker/curl-impersonate/releases/download/${version}/curl-impersonate-${version}.x86_64-linux-gnu.tar.gz";
9     sha256 = "sha256-+cH1swAIadIrWG9anzf0dcW6qyBjcKsUHFWdv75F49g=";
10     stripRoot = false;
11   };
13   nativeBuildInputs = [ autoPatchelfHook zlib ];
15   installPhase = ''
16     mkdir -p $out/bin
17     cp * $out/bin
18   '';
20   meta = with lib; {
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.
26   };