1 { lib, stdenv, fetchFromGitHub, rustPlatform, Security }:
3 rustPlatform.buildRustPackage rec {
4 pname = "worker-build";
7 src = fetchFromGitHub {
11 hash = "sha256-z6m14IbMzgycwnQpA28e4taokDSVpfZOKIRmFIwLjbg=";
15 lockFile = ./Cargo.lock;
17 "postgres-protocol-0.6.5" = "sha256-xLyaappu7ebtKOoHY49dvjDEcuRg8IOv1bNH9RxSUcM=";
21 buildInputs = lib.optionals stdenv.isDarwin [ Security ];
23 buildAndTestSubdir = "worker-build";
25 # missing some module upstream to run the tests
29 description = "This is a tool to be used as a custom build command for a Cloudflare Workers `workers-rs` project.";
30 homepage = "https://github.com/cloudflare/workers-rs";
31 license = with licenses; [ asl20 /* or */ mit ];
32 maintainers = with maintainers; [ happysalada ];