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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
873 B
Nix
Raw Normal View History

2022-09-02 09:17:20 +00:00
{ lib, stdenv, fetchFromGitHub, rustPlatform, Security }:
2022-02-12 13:38:15 +00:00
rustPlatform.buildRustPackage rec {
pname = "worker-build";
2023-06-06 05:06:07 +00:00
version = "0.0.17";
2022-02-12 13:38:15 +00:00
src = fetchFromGitHub {
owner = "cloudflare";
repo = "workers-rs";
rev = "v${version}";
2023-06-06 05:06:07 +00:00
sha256 = "sha256-siKIE+RHAnZ8Lj3kWg7jEVo5t10dqc59OMrro26ClWo=";
2022-02-12 13:38:15 +00:00
};
2023-06-06 05:06:07 +00:00
cargoHash = "sha256-j6WG8pRM6fIvMeXDdkjzRREE9tIug0w+UwWdOmPao4U=";
2022-09-02 09:17:20 +00:00
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
2022-02-12 13:38:15 +00:00
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 ];
};
}