mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
curl-impersonate-bin: init at v0.5.3
This commit is contained in:
parent
9413ebb2e1
commit
7f60529b07
27
pkgs/tools/networking/curl-impersonate/default.nix
Normal file
27
pkgs/tools/networking/curl-impersonate/default.nix
Normal file
@ -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.
|
||||
};
|
||||
}
|
@ -5511,6 +5511,8 @@ with pkgs;
|
||||
|
||||
curlWithGnuTls = curl.override { gnutlsSupport = true; opensslSupport = false; };
|
||||
|
||||
curl-impersonate-bin = callPackage ../tools/networking/curl-impersonate { };
|
||||
|
||||
curlie = callPackage ../tools/networking/curlie { };
|
||||
|
||||
cunit = callPackage ../tools/misc/cunit { };
|
||||
|
Loading…
Reference in New Issue
Block a user