eeb71630af
GitOrigin-RevId: 636051e353461f073ac55d5d42c1ed062a345046
37 lines
1 KiB
Nix
37 lines
1 KiB
Nix
{ stdenv, lib, rustPlatform, fetchFromGitHub, makeWrapper, cargo-watch, zig, Security }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cargo-lambda";
|
|
version = "0.11.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-IK4HVj8Y8Vz+mza8G9C+m5JRfNT3BWWdlbQQkJPu6RI=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-oSqoSvv8IiChtduQQA31wItHcsnRBAQgOCrQN4sjcx8=";
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/cargo-lambda --prefix PATH : ${lib.makeBinPath [ cargo-watch zig ]}
|
|
'';
|
|
|
|
checkFlags = [
|
|
# Disabled because it accesses the network.
|
|
"--skip test_download_example"
|
|
# Disabled because it makes assumptions about the file system.
|
|
"--skip test_target_dir_from_env"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A Cargo subcommand to help you work with AWS Lambda";
|
|
homepage = "https://cargo-lambda.info";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ taylor1791 ];
|
|
};
|
|
}
|