varnish: unbreak on darwin

This commit is contained in:
Weijia Wang 2023-01-29 07:08:14 +01:00
parent e49997b90c
commit 4c109d3aa0

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, fetchpatch, pcre, pcre2, jemalloc, libxslt, groff, ncurses, pkg-config, readline, libedit { lib, stdenv, fetchurl, fetchpatch, pcre, pcre2, jemalloc, libunwind, libxslt, groff, ncurses, pkg-config, readline, libedit
, coreutils, python3, makeWrapper, nixosTests }: , coreutils, python3, makeWrapper, nixosTests }:
let let
@ -18,6 +18,7 @@ let
] ]
++ lib.optional (lib.versionOlder version "7") pcre ++ lib.optional (lib.versionOlder version "7") pcre
++ lib.optional (lib.versionAtLeast version "7") pcre2 ++ lib.optional (lib.versionAtLeast version "7") pcre2
++ lib.optional stdenv.hostPlatform.isDarwin libunwind
++ lib.optional stdenv.hostPlatform.isLinux jemalloc; ++ lib.optional stdenv.hostPlatform.isLinux jemalloc;
buildFlags = [ "localstatedir=/var/spool" ]; buildFlags = [ "localstatedir=/var/spool" ];
@ -41,7 +42,6 @@ let
}; };
meta = with lib; { meta = with lib; {
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";
homepage = "https://www.varnish-cache.org"; homepage = "https://www.varnish-cache.org";
license = licenses.bsd2; license = licenses.bsd2;