depot/third_party/nixpkgs/pkgs/by-name/se/serverless/package.nix
Default email 83627f9931 Project import generated by Copybara.
GitOrigin-RevId: 2893f56de08021cffd9b6b6dfc70fd9ccd51eb60
2024-06-24 14:47:55 -04:00

33 lines
833 B
Nix

{ lib
, buildNpmPackage
, fetchFromGitHub
}:
buildNpmPackage rec {
pname = "serverless";
version = "3.38.0";
src = fetchFromGitHub {
owner = "serverless";
repo = "serverless";
rev = "v${version}";
hash = "sha256-DplJRJOdIpZfIvpyPo9VcaXCHVPWB8FwhOH4vISUh3Q=";
};
postPatch = ''
cp ${./package-lock.json} ./package-lock.json
'';
npmDepsHash = "sha256-Vy3GQelssTqsGsvZqIdctsPlxZQkqrhN0p6AY1T2L/k=";
dontNpmBuild = true;
meta = {
changelog = "https://github.com/serverless/serverless/blob/${src.rev}/CHANGELOG.md";
description = "Build applications on AWS Lambda and other next-gen cloud services, that auto-scale and only charge you when they run";
homepage = "https://serverless.com";
license = lib.licenses.mit;
mainProgram = "serverless";
maintainers = [ ];
};
}