swagger-cli: init at 4.0.4

This commit is contained in:
Mostly Void 2022-12-26 01:03:09 +05:30 committed by Anderson Torres
parent 4ff3a5795b
commit 0c6a3aa6b7
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,30 @@
{ lib
, stdenv
, fetchFromGitHub
, buildNpmPackage
}:
buildNpmPackage rec {
pname = "swagger-cli";
version = "4.0.4";
src = fetchFromGitHub {
owner = "APIDevTools";
repo = "swagger-cli";
rev = "v${version}";
sha256 = "sha256-WgzfSd57vRwa1HrSgNxD0F5ckczBkOaVmrEZ9tMAcRA=";
};
npmDepsHash = "sha256-go9eYGCZmbwRArHVTVa6mxL+kjvBcrLxKw2iVv0a5hY=";
buildPhase = ''
npm run bump
'';
meta = with lib; {
description = "Swagger 2.0 and OpenAPI 3.0 command-line tool";
homepage = "https://apitools.dev/swagger-cli/";
license = licenses.mit;
maintainers = with maintainers; [ dit7ya ];
};
}

View File

@ -12802,6 +12802,8 @@ with pkgs;
surfraw = callPackage ../tools/networking/surfraw { };
swagger-cli = callPackage ../tools/networking/swagger-cli { };
swagger-codegen = callPackage ../tools/networking/swagger-codegen { };
swagger-codegen3 = callPackage ../tools/networking/swagger-codegen3 { };