diff options
author | Robert Hensing <robert@roberthensing.nl> | 2021-04-14 11:45:56 +0200 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2021-05-06 16:25:24 +0200 |
commit | 99d5c97a8ca9ee83529e76632137829bf0986a0b (patch) | |
tree | 32790790dccf7c7ff8c10bd98cd37235ea68037f /pkgs/tools/networking/openapi-generator-cli/unstable.nix | |
parent | a4c8569ed59c1a85615a7d52224236f2848cfe3a (diff) | |
download | nixpkgs-99d5c97a8ca9ee83529e76632137829bf0986a0b.tar nixpkgs-99d5c97a8ca9ee83529e76632137829bf0986a0b.tar.gz nixpkgs-99d5c97a8ca9ee83529e76632137829bf0986a0b.tar.bz2 nixpkgs-99d5c97a8ca9ee83529e76632137829bf0986a0b.tar.lz nixpkgs-99d5c97a8ca9ee83529e76632137829bf0986a0b.tar.xz nixpkgs-99d5c97a8ca9ee83529e76632137829bf0986a0b.tar.zst nixpkgs-99d5c97a8ca9ee83529e76632137829bf0986a0b.zip |
openapi-generator-cli: Add passthru.tests.example
Diffstat (limited to 'pkgs/tools/networking/openapi-generator-cli/unstable.nix')
-rw-r--r-- | pkgs/tools/networking/openapi-generator-cli/unstable.nix | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/pkgs/tools/networking/openapi-generator-cli/unstable.nix b/pkgs/tools/networking/openapi-generator-cli/unstable.nix index 1384f35a3f2..63a780951ac 100644 --- a/pkgs/tools/networking/openapi-generator-cli/unstable.nix +++ b/pkgs/tools/networking/openapi-generator-cli/unstable.nix @@ -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 |