3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #196701 from taylor1791/cargo-lambda

This commit is contained in:
Sandro 2022-10-30 19:10:20 +01:00 committed by GitHub
commit 30a2cfdb50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 46 additions and 0 deletions

View file

@ -13305,6 +13305,12 @@
githubId = 102685;
name = "Thomas Friese";
};
taylor1791 = {
email = "nixpkgs@tayloreverding.com";
github = "taylor1791";
githubId = 555003;
name = "Taylor Everding";
};
tazjin = {
email = "mail@tazj.in";
github = "tazjin";

View file

@ -0,0 +1,37 @@
{ 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 ];
};
}

View file

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