Commit d8d26407 authored by emaryn's avatar emaryn
Browse files

worker-build: 0.0.18 -> 0.5.0

parent 220d184e
Loading
Loading
Loading
Loading
+0 −2415

File deleted.

Preview size limit exceeded, changes collapsed.

+9 −16
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchFromGitHub,
  rustPlatform,
  Security,
}:

rustPlatform.buildRustPackage rec {
  pname = "worker-build";
  version = "0.0.18";
  version = "0.5.0";

  src = fetchFromGitHub {
    owner = "cloudflare";
    repo = "workers-rs";
    rev = "v${version}";
    hash = "sha256-z6m14IbMzgycwnQpA28e4taokDSVpfZOKIRmFIwLjbg=";
    tag = "v${version}";
    hash = "sha256-eMuuEqHBiwgz7DKimYuK9MUPT4vnOU8rLOIIq8zsTao=";
  };

  cargoLock = {
    lockFile = ./Cargo.lock;
    outputHashes = {
      "postgres-protocol-0.6.5" = "sha256-xLyaappu7ebtKOoHY49dvjDEcuRg8IOv1bNH9RxSUcM=";
    };
  };
  useFetchCargoVendor = true;

  buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ Security ];
  cargoHash = "sha256-yzuyenWAdj5tEdUFGxSfBU4m3w1YCCrnbajPMYMGSkI=";

  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";
  meta = {
    description = "Tool to be used as a custom build command for a Cloudflare Workers `workers-rs` project";
    mainProgram = "worker-build";
    homepage = "https://github.com/cloudflare/workers-rs";
    license = with licenses; [
    license = with lib.licenses; [
      asl20 # or
      mit
    ];
    maintainers = with maintainers; [ happysalada ];
    maintainers = with lib.maintainers; [ happysalada ];
  };
}
+1 −3
Original line number Diff line number Diff line
@@ -3151,9 +3151,7 @@ with pkgs;
  vorta = qt6Packages.callPackage ../applications/backup/vorta { };
  worker-build = callPackage ../development/tools/worker-build {
    inherit (darwin.apple_sdk.frameworks) Security;
  };
  worker-build = callPackage ../development/tools/worker-build { };
  wrangler_1 = callPackage ../development/tools/wrangler_1 {
    inherit (darwin.apple_sdk.frameworks) CoreFoundation CoreServices Security;