410b979fe2
GitOrigin-RevId: a64e169e396460d6b5763a1de1dd197df8421688
29 lines
873 B
Nix
29 lines
873 B
Nix
{ lib, stdenv, fetchFromGitHub, rustPlatform, Security }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "worker-build";
|
|
version = "0.0.14";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cloudflare";
|
|
repo = "workers-rs";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-e0nnemaAcgy5tHaAZFIKJCa2c6763Vynlj34j+qjMdk=";
|
|
};
|
|
|
|
cargoHash = "sha256-GtX46K99Il+KBQV6jbQYz0ba2HDaAUS4ZGa0fMUUO1s=";
|
|
|
|
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 ];
|
|
};
|
|
}
|