Merge pull request #224814 from waynevanson/update/cargo-lambda

cargo-lambda: from 0.13.0 to 0.18.1
This commit is contained in:
Sandro 2023-04-13 15:30:04 +02:00 committed by GitHub
commit 3a4422480f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4995 additions and 9 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,33 +1,51 @@
{ lib
, cacert
, curl
, rustPlatform
, fetchFromGitHub
, makeWrapper
, pkg-config
, openssl
, stdenv
, CoreServices
, Security
, cargo-watch
, zig
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-lambda";
version = "0.13.0";
version = "0.18.1";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "sha256-JwrTwCn4qXcjXjy4cPYM3WCblJS0J5Xxnc6WESMwCpU=";
sha256 = "sha256-un+GQflxhMHCMH5UEeUVsYx59ryn7MR4ApooeOuhccc=";
};
cargoSha256 = "sha256-p3q5S6IFQQgNp/MHGSUE1DVLFyMLWDTv/dxrUACKSWo=";
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"cargo-test-macro-0.1.0" = "sha256-XvTKAbP/r1BthpEM84CYZ2yfJczxqzscGkN4JXLgvfA=";
};
};
nativeBuildInputs = [ makeWrapper ];
nativeCheckInputs = [cacert];
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
nativeBuildInputs = [ makeWrapper pkg-config ];
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ curl CoreServices Security ];
checkFlags = [
# Disabled because it accesses the network.
# Disabled because they accesses the network.
"--skip=test_build_basic_extension"
"--skip=test_build_basic_function"
"--skip=test_build_http_function"
"--skip=test_build_logs_extension"
"--skip=test_build_telemetry_extension"
"--skip=test_download_example"
"--skip=test_init_subcommand"
"--skip=test_init_subcommand_without_override"
];
# remove date from version output to make reproducible
@ -36,7 +54,7 @@ rustPlatform.buildRustPackage rec {
'';
postInstall = ''
wrapProgram $out/bin/cargo-lambda --prefix PATH : ${lib.makeBinPath [ cargo-watch zig ]}
wrapProgram $out/bin/cargo-lambda --prefix PATH : ${lib.makeBinPath [ zig ]}
'';
CARGO_LAMBDA_BUILD_INFO = "(nixpkgs)";

View File

@ -16096,7 +16096,7 @@ with pkgs;
};
cargo-insta = callPackage ../development/tools/rust/cargo-insta { };
cargo-lambda = callPackage ../development/tools/rust/cargo-lambda {
inherit (darwin.apple_sdk.frameworks) Security;
inherit (darwin.apple_sdk.frameworks) CoreServices Security;
};
cargo-limit = callPackage ../development/tools/rust/cargo-limit { };
cargo-make = callPackage ../development/tools/rust/cargo-make {