depot/third_party/nixpkgs/pkgs/development/tools/worker-build/default.nix
Default email 87f9c27ba9 Project import generated by Copybara.
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
2023-04-12 14:48:02 +02:00

29 lines
873 B
Nix

{ lib, stdenv, fetchFromGitHub, rustPlatform, Security }:
rustPlatform.buildRustPackage rec {
pname = "worker-build";
version = "0.0.15";
src = fetchFromGitHub {
owner = "cloudflare";
repo = "workers-rs";
rev = "v${version}";
sha256 = "sha256-EJU6WgoGnhquHSJ1hLVK8eild7jcegeC+VxOeoD9+20=";
};
cargoHash = "sha256-6QzZtaqnhZ1V5UU9pppLK+LKn9EdvMJ8YOyxFYt7oos=";
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 ];
};
}