4d5a95770c
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
29 lines
873 B
Nix
29 lines
873 B
Nix
{ lib, stdenv, fetchFromGitHub, rustPlatform, Security }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "worker-build";
|
|
version = "0.0.13";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cloudflare";
|
|
repo = "workers-rs";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-eJLYe6H8g2ZM3gWt0GMzj0X7+7e7pFtCRCqDJfVzvms=";
|
|
};
|
|
|
|
cargoHash = "sha256-DjWVJH0XeSPesqQr0Rb9Bd+8Q39I1rUoS4dg7KT4mo4=";
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
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 ];
|
|
};
|
|
}
|