nixpkgs/pkgs/development/tools/worker-build/default.nix
2023-04-25 20:36:22 -04:00

30 lines
873 B
Nix

{ lib, stdenv, fetchFromGitHub, rustPlatform, Security }:
rustPlatform.buildRustPackage rec {
pname = "worker-build";
version = "0.0.16";
src = fetchFromGitHub {
owner = "cloudflare";
repo = "workers-rs";
rev = "v${version}";
sha256 = "sha256-8+ifSCfHYrS5iAa4fsujmofzicbwk/00VRNZvIkIc+E=";
};
cargoHash = "sha256-fj/l53AdgJXYz+IA45yfNYgSw7DKbBrGVyFCfbqxxq0=";
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 ];
};
}