Skip to content

Commit

Permalink
varnish: add passthru.tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ajs124 committed Sep 28, 2022
1 parent 85e999f commit 4f96860
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pkgs/servers/varnish/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ lib, stdenv, fetchurl, fetchpatch, pcre, pcre2, jemalloc, libxslt, groff, ncurses, pkg-config, readline, libedit
, coreutils, python3, makeWrapper }:
, coreutils, python3, makeWrapper, nixosTests }:

let
common = { version, hash, extraNativeBuildInputs ? [] }:
Expand All @@ -12,8 +12,6 @@ let
inherit hash;
};

passthru.python = python3;

nativeBuildInputs = with python3.pkgs; [ pkg-config docutils sphinx makeWrapper];
buildInputs = [
libxslt groff ncurses readline libedit python3
Expand All @@ -37,6 +35,11 @@ let

outputs = [ "out" "dev" "man" ];

passthru = {
python = python3;
tests = nixosTests."varnish${builtins.replaceStrings [ "." ] [ "" ] (lib.versions.majorMinor version)}";
};

meta = with lib; {
broken = stdenv.isDarwin;
description = "Web application accelerator also known as a caching HTTP reverse proxy";
Expand Down

0 comments on commit 4f96860

Please sign in to comment.