openapi-generator-cli: Add passthru.tests.example

This commit is contained in:
Robert Hensing
2021-05-06 16:25:24 +02:00
parent a4c8569ed5
commit 99d5c97a8c
3 changed files with 46 additions and 6 deletions
@@ -1,6 +1,6 @@
{ lib, stdenv, fetchurl, jre, makeWrapper }:
{ callPackage, lib, stdenv, fetchurl, jre, makeWrapper }:
stdenv.mkDerivation rec {
let this = stdenv.mkDerivation rec {
version = "6.0.0-2021-01-18"; # Also update the fetchurl link
pname = "openapi-generator-cli";
@@ -30,5 +30,9 @@ stdenv.mkDerivation rec {
license = licenses.asl20;
maintainers = [ maintainers.shou ];
};
}
passthru.tests.example = callPackage ./example.nix {
openapi-generator-cli = this;
};
};
in this