Skip to content

Commit

Permalink
cargo-lambda: 1.4.0 -> 1.5.0 (NixOS#354354)
Browse files Browse the repository at this point in the history
  • Loading branch information
pbsds authored Nov 14, 2024
2 parents 0d9b400 + ffdc305 commit d22d4dc
Showing 1 changed file with 8 additions and 28 deletions.
36 changes: 8 additions & 28 deletions pkgs/development/tools/rust/cargo-lambda/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@

rustPlatform.buildRustPackage rec {
pname = "cargo-lambda";
version = "1.4.0";
version = "1.5.0";

src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
hash = "sha256-QTFIFD04pAcNgj+ktY8WP0ScDmSy6mNlhfiXAabMlGE=";
hash = "sha256-58kVtwBZEAlv9eVesqmWMZ+KxAwEiGMm8mCf9X5tPMI=";
};

cargoHash = "sha256-1/+bkxEpIvaJBJatqpX186MHKOdLO8Jiw8NEnyr9ctg=";
cargoHash = "sha256-DoMIVpYtEHvYSW2THpZFdhoFI0zjC70hYnwnzGwkJ4Q=";

nativeCheckInputs = [ cacert ];

Expand All @@ -43,36 +43,16 @@ rustPlatform.buildRustPackage rec {
];

checkFlags = [
# Disabled because they access the network.
"--skip=test_build_basic_extension"
"--skip=test_build_basic_function"
"--skip=test_build_basic_zip_extension"
"--skip=test_build_basic_zip_function"
"--skip=test_build_event_type_function"
"--skip=test_build_http_feature_function"
"--skip=test_build_http_function"
"--skip=test_build_internal_zip_extension"
"--skip=test_build_logs_extension"
"--skip=test_build_telemetry_extension"
"--skip=test_build_zip_workspace"
# Tests disabled because they access the network.
"--skip=test_download_example"
"--skip=test_init_subcommand"
"--skip=test_init_subcommand_without_override"
"--skip=test_build_example"
"--skip=test_deploy_workspace"
"--skip=test_add_files"
"--skip=test_consistent_hash"
"--skip=test_create_binary_archive_from_target"
"--skip=test_create_binary_archive_with_base_path"
"--skip=test_zip_extension"
"--skip=test_zip_funcion"
"--skip=test_zip_funcion_with_files"
"--skip=test_zip_internal_extension"
];

# remove date from version output to make reproducible
# Remove files that don't make builds reproducible:
# - Remove build.rs file that adds the build date to the version.
# - Remove cargo_lambda.rs that contains tests that reach the network.
postPatch = ''
rm crates/cargo-lambda-cli/build.rs
rm crates/cargo-lambda-cli/tests/cargo_lambda.rs
'';

postInstall = ''
Expand Down

0 comments on commit d22d4dc

Please sign in to comment.