diff options
author | Yt <raphael@megzari.com> | 2022-02-12 08:38:15 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-12 22:38:15 +0900 |
commit | ed688e36a5ac0c483acdd9443c28bce53b7c12ed (patch) | |
tree | b12c198d6e5ab45a761b022606586e65ccc69930 /pkgs/development | |
parent | ef5f153b967cc5906a5fb807f35a2f5758b64d1b (diff) |
worker-build: init at 0.0.9 (#159372)
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/tools/worker-build/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/tools/worker-build/default.nix b/pkgs/development/tools/worker-build/default.nix new file mode 100644 index 0000000000000..4f6c595ee9bcd --- /dev/null +++ b/pkgs/development/tools/worker-build/default.nix @@ -0,0 +1,27 @@ +{ lib, stdenv, fetchFromGitHub, rustPlatform }: + +rustPlatform.buildRustPackage rec { + pname = "worker-build"; + version = "0.0.9"; + + src = fetchFromGitHub { + owner = "cloudflare"; + repo = "workers-rs"; + rev = "v${version}"; + sha256 = "sha256-nrvnIuLBtdMMBcYm8McOxHc/HHYDrogEG9Ii2Bevl+w="; + }; + + cargoSha256 = "sha256-xLssAmyfHr4EBQ72XZFqybA6ZI1UM2Q2kS5UWmIkteM="; + + buildAndTestSubdir = "worker-build"; + + # missing some module upstream to run the tests + doCheck = false; + + meta = with lib; { + description = "This is a tool to be used as a custom build command for a Cloudflare Workers `workers-rs` project."; + homepage = "https://github.com/cloudflare/worker-rs"; + license = with licenses; [ asl20 /* or */ mit ]; + maintainers = with maintainers; [ happysalada ]; + }; +} |