2022-09-09 14:08:57 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, Security }:
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "worker-build";
|
2023-03-24 00:07:29 +00:00
|
|
|
version = "0.0.14";
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cloudflare";
|
|
|
|
repo = "workers-rs";
|
|
|
|
rev = "v${version}";
|
2023-03-24 00:07:29 +00:00
|
|
|
sha256 = "sha256-e0nnemaAcgy5tHaAZFIKJCa2c6763Vynlj34j+qjMdk=";
|
2022-02-20 05:27:41 +00:00
|
|
|
};
|
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
cargoHash = "sha256-GtX46K99Il+KBQV6jbQYz0ba2HDaAUS4ZGa0fMUUO1s=";
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|