1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

swagger-codegen3: add passthru.tests.version

This commit is contained in:
Damien Cassou 2023-11-01 11:31:18 +01:00
parent 1568a8e235
commit 8bc5b41cd5
No known key found for this signature in database
GPG key ID: B68746238E59B548

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, jre, makeWrapper }:
{ lib, stdenv, fetchurl, jre, makeWrapper, testers, swagger-codegen3 }:
stdenv.mkDerivation rec {
version = "3.0.50";
@ -24,6 +24,11 @@ stdenv.mkDerivation rec {
--add-flags "-jar $out/share/java/${jarfilename}"
'';
passthru.tests.version = testers.testVersion {
package = swagger-codegen3;
command = "swagger-codegen3 version";
};
meta = with lib; {
description = "Allows generation of API client libraries (SDK generation), server stubs and documentation automatically given an OpenAPI Spec";
homepage = "https://github.com/swagger-api/swagger-codegen/tree/3.0.0";