Files
nixpkgs/pkgs/by-name/wr/wrangler_1/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

51 lines
999 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
rustPlatform,
pkg-config,
openssl,
curl,
libiconv,
}:
rustPlatform.buildRustPackage rec {
pname = "wrangler";
version = "1.21.0";
src = fetchFromGitHub {
owner = "cloudflare";
repo = "wrangler";
rev = "v${version}";
sha256 = "sha256-GfuU+g4tPU3TorzymEa9q8n4uKYsG0ZTz8rJirGOLfQ=";
};
cargoHash = "sha256-MJFXcmRzvzDJ8cd0WdcNiHr3Wxgp/hKO1xKRfmbxRLA=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [
openssl
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
curl
libiconv
];
OPENSSL_NO_VENDOR = 1;
# tries to use "/homeless-shelter" and fails
doCheck = false;
meta = with lib; {
description = "CLI tool designed for folks who are interested in using Cloudflare Workers";
mainProgram = "wrangler";
homepage = "https://github.com/cloudflare/wrangler";
license = with licenses; [
asl20 # or
mit
];
maintainers = with maintainers; [ Br1ght0ne ];
};
}