varnish: add passthru.tests

This commit is contained in:
ajs124 2022-09-27 21:45:45 +02:00
parent 85e999f902
commit 4f968607f9

@ -1,5 +1,5 @@
{ lib, stdenv, fetchurl, fetchpatch, pcre, pcre2, jemalloc, libxslt, groff, ncurses, pkg-config, readline, libedit { lib, stdenv, fetchurl, fetchpatch, pcre, pcre2, jemalloc, libxslt, groff, ncurses, pkg-config, readline, libedit
, coreutils, python3, makeWrapper }: , coreutils, python3, makeWrapper, nixosTests }:
let let
common = { version, hash, extraNativeBuildInputs ? [] }: common = { version, hash, extraNativeBuildInputs ? [] }:
@ -12,8 +12,6 @@ let
inherit hash; inherit hash;
}; };
passthru.python = python3;
nativeBuildInputs = with python3.pkgs; [ pkg-config docutils sphinx makeWrapper]; nativeBuildInputs = with python3.pkgs; [ pkg-config docutils sphinx makeWrapper];
buildInputs = [ buildInputs = [
libxslt groff ncurses readline libedit python3 libxslt groff ncurses readline libedit python3
@ -37,6 +35,11 @@ let
outputs = [ "out" "dev" "man" ]; outputs = [ "out" "dev" "man" ];
passthru = {
python = python3;
tests = nixosTests."varnish${builtins.replaceStrings [ "." ] [ "" ] (lib.versions.majorMinor version)}";
};
meta = with lib; { meta = with lib; {
broken = stdenv.isDarwin; broken = stdenv.isDarwin;
description = "Web application accelerator also known as a caching HTTP reverse proxy"; description = "Web application accelerator also known as a caching HTTP reverse proxy";