nixpkgs/pkgs/development/tools/cloudflare-wrangler/default.nix

34 lines
938 B
Nix
Raw Normal View History

2019-10-09 16:38:49 +01:00
{ stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl
}:
rustPlatform.buildRustPackage rec {
pname = "cloudflare-wrangler";
2020-02-11 12:17:33 +00:00
version = "1.7.0";
2019-10-09 16:38:49 +01:00
src = fetchFromGitHub {
owner = "cloudflare";
repo = "wrangler";
rev = "v" + version;
2020-02-11 12:17:33 +00:00
sha256 = "0vc7f3jki2fdwlgpwhaxzm58g2898wpwbib7dmibb9kxv4jna8gj";
2019-10-09 16:38:49 +01:00
};
# Delete this on next update; see #79975 for details
legacyCargoFetcher = true;
2020-02-11 12:17:33 +00:00
cargoSha256 = "1f3gy3agpdg6pck5acxjfrd89hyp9x1byqhfizlizbfmwrqs4il8";
2019-10-09 16:38:49 +01:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];
# tries to use "/homeless-shelter" and fails
doCheck = false;
meta = with stdenv.lib; {
description = "A CLI tool designed for folks who are interested in using Cloudflare Workers.";
homepage = https://github.com/cloudflare/wrangler;
license = with licenses; [ asl20 /* or */ mit ];
maintainers = with maintainers; [ ];
platforms = platforms.all;
};
}