From 91f582db037c429a98e119a8ba9fabc07bd97745 Mon Sep 17 00:00:00 2001 From: Danny Bautista Date: Wed, 9 Oct 2019 11:38:49 -0400 Subject: [PATCH] cloudflare-wrangler: init at 1.4.0 --- .../tools/cloudflare-wrangler/default.nix | 31 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/development/tools/cloudflare-wrangler/default.nix diff --git a/pkgs/development/tools/cloudflare-wrangler/default.nix b/pkgs/development/tools/cloudflare-wrangler/default.nix new file mode 100644 index 000000000000..efca438ada36 --- /dev/null +++ b/pkgs/development/tools/cloudflare-wrangler/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl +}: + +rustPlatform.buildRustPackage rec { + pname = "cloudflare-wrangler"; + version = "1.4.0"; + + src = fetchFromGitHub { + owner = "cloudflare"; + repo = "wrangler"; + rev = "v" + version; + sha256 = "1agl1cg34iklvniygrkq8dqsampvg17d3nsm0dcr6c3n5rj09gbi"; + }; + + cargoSha256 = "0c2g6yghwqjy21yfdcri4v9aqizd06ww3zx2snns51gnqqk8r57k"; + + 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3f60d86a23d0..59743ecc88f6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -777,6 +777,8 @@ in cloud-sql-proxy = callPackage ../tools/misc/cloud-sql-proxy { }; + cloudflare-wrangler = callPackage ../development/tools/cloudflare-wrangler { }; + container-linux-config-transpiler = callPackage ../development/tools/container-linux-config-transpiler { }; ccextractor = callPackage ../applications/video/ccextractor { };