depot/third_party/nixpkgs/pkgs/development/tools/worker-build/default.nix

30 lines
873 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, rustPlatform, Security }:
rustPlatform.buildRustPackage rec {
pname = "worker-build";
version = "0.0.14";
src = fetchFromGitHub {
owner = "cloudflare";
repo = "workers-rs";
rev = "v${version}";
sha256 = "sha256-e0nnemaAcgy5tHaAZFIKJCa2c6763Vynlj34j+qjMdk=";
};
cargoHash = "sha256-GtX46K99Il+KBQV6jbQYz0ba2HDaAUS4ZGa0fMUUO1s=";
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 ];
};
}