diff options
author | deliciouslytyped <47436522+deliciouslytyped@users.noreply.github.com> | 2022-09-18 11:44:53 +0200 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2022-09-18 23:01:55 +0200 |
commit | 7f60529b07a84b724f59caa31c42301741259d86 (patch) | |
tree | 1ea19510c973a41e2c79f8820b2f02e9416e11b3 /pkgs/tools | |
parent | 9413ebb2e1ddd5e2d9fea57aedc89d15a32c5a58 (diff) | |
download | nixpkgs-7f60529b07a84b724f59caa31c42301741259d86.tar nixpkgs-7f60529b07a84b724f59caa31c42301741259d86.tar.gz nixpkgs-7f60529b07a84b724f59caa31c42301741259d86.tar.bz2 nixpkgs-7f60529b07a84b724f59caa31c42301741259d86.tar.lz nixpkgs-7f60529b07a84b724f59caa31c42301741259d86.tar.xz nixpkgs-7f60529b07a84b724f59caa31c42301741259d86.tar.zst nixpkgs-7f60529b07a84b724f59caa31c42301741259d86.zip |
curl-impersonate-bin: init at v0.5.3
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/networking/curl-impersonate/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/tools/networking/curl-impersonate/default.nix b/pkgs/tools/networking/curl-impersonate/default.nix new file mode 100644 index 00000000000..e00b1a77ef2 --- /dev/null +++ b/pkgs/tools/networking/curl-impersonate/default.nix @@ -0,0 +1,27 @@ +#TODO: It should be possible to build this from source, but it's currently a lot faster to just package the binaries. +{ lib, stdenv, fetchzip, zlib, autoPatchelfHook }: +stdenv.mkDerivation rec { + pname = "curl-impersonate-bin"; + version = "v0.5.3"; + + src = fetchzip { + url = "https://github.com/lwthiker/curl-impersonate/releases/download/${version}/curl-impersonate-${version}.x86_64-linux-gnu.tar.gz"; + sha256 = "sha256-+cH1swAIadIrWG9anzf0dcW6qyBjcKsUHFWdv75F49g="; + stripRoot = false; + }; + + nativeBuildInputs = [ autoPatchelfHook zlib ]; + + installPhase = '' + mkdir -p $out/bin + cp * $out/bin + ''; + + meta = with lib; { + description = "curl-impersonate: A special build of curl that can impersonate Chrome & Firefox "; + homepage = "https://github.com/lwthiker/curl-impersonate"; + license = with licenses; [ curl mit ]; + maintainers = with maintainers; [ deliciouslytyped ]; + platforms = platforms.linux; #TODO I'm unsure about the restrictions here, feel free to expand the platforms it if it works elsewhere. + }; +} |