1 { lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl, curl, Security, CoreServices, CoreFoundation, libiconv }:
3 rustPlatform.buildRustPackage rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-GfuU+g4tPU3TorzymEa9q8n4uKYsG0ZTz8rJirGOLfQ=";
14 cargoHash = "sha256-tPLqDm6kOVBKrLvhgZ9xD6vVBNjBBk9uLF7WOPgz8qE=";
16 nativeBuildInputs = [ pkg-config ];
18 buildInputs = [ openssl ]
19 ++ lib.optionals stdenv.isDarwin [ curl CoreFoundation CoreServices Security libiconv ];
21 OPENSSL_NO_VENDOR = 1;
23 # tries to use "/homeless-shelter" and fails
27 description = "A CLI tool designed for folks who are interested in using Cloudflare Workers";
28 mainProgram = "wrangler";
29 homepage = "https://github.com/cloudflare/wrangler";
30 license = with licenses; [ asl20 /* or */ mit ];
31 maintainers = with maintainers; [ Br1ght0ne ];