1 { lib, stdenv, fetchFromGitHub, rustPlatform, Security }:
3 rustPlatform.buildRustPackage rec {
4 pname = "worker-build";
7 src = fetchFromGitHub {
11 sha256 = "sha256-oqnYWrytQ3hCf4T/PNIXTs3tW+W8HvuvIulRhdhzsDU=";
14 cargoSha256 = "sha256-t35LMyiQl2bsGjNIKqb8sKbrmCLZ0pmoo0qX0buGA+o=";
16 buildInputs = lib.optionals stdenv.isDarwin [ Security ];
18 buildAndTestSubdir = "worker-build";
20 # missing some module upstream to run the tests
24 description = "This is a tool to be used as a custom build command for a Cloudflare Workers `workers-rs` project.";
25 homepage = "https://github.com/cloudflare/worker-rs";
26 license = with licenses; [ asl20 /* or */ mit ];
27 maintainers = with maintainers; [ happysalada ];