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-10-09 19:29:22 +00:00
|
|
|
version = "0.0.18";
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cloudflare";
|
|
|
|
repo = "workers-rs";
|
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-z6m14IbMzgycwnQpA28e4taokDSVpfZOKIRmFIwLjbg=";
|
2022-02-20 05:27:41 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
cargoLock = {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
|
|
|
"postgres-protocol-0.6.5" = "sha256-xLyaappu7ebtKOoHY49dvjDEcuRg8IOv1bNH9RxSUcM=";
|
|
|
|
};
|
|
|
|
};
|
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; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "This is a tool to be used as a custom build command for a Cloudflare Workers `workers-rs` project";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "worker-build";
|
2023-10-09 19:29:22 +00:00
|
|
|
homepage = "https://github.com/cloudflare/workers-rs";
|
2022-02-20 05:27:41 +00:00
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
|
|
|
maintainers = with maintainers; [ happysalada ];
|
|
|
|
};
|
|
|
|
}
|