From 3a9ffac149446f885ac533025a10a84f64db836a Mon Sep 17 00:00:00 2001 From: ajs124 Date: Thu, 30 Sep 2021 20:26:25 +0200 Subject: [PATCH] varnish70: fix build on darwin --- pkgs/servers/varnish/default.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pkgs/servers/varnish/default.nix b/pkgs/servers/varnish/default.nix index f975fd5c7fd0..e74b033568b5 100644 --- a/pkgs/servers/varnish/default.nix +++ b/pkgs/servers/varnish/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, pcre, pcre2, libxslt, groff, ncurses, pkg-config, readline, libedit, coreutils +{ lib, stdenv, fetchurl, fetchpatch, pcre, pcre2, libxslt, groff, ncurses, pkg-config, readline, libedit, coreutils , python3, makeWrapper }: let @@ -50,8 +50,15 @@ in version = "6.0.8"; sha256 = "1zk83hfxgjq1d0n4zx86q3f05y9f2zc6a1miz1zcvfa052q4bljx"; }; - varnish70 = common { + varnish70 = (common { version = "7.0.0"; sha256 = "11z0pa618lh925ih67wmp1gqk7i46l486j4spjy71g1n3w5mqylc"; - }; + }).overrideAttrs (oA: { + patches = [ + (fetchpatch { + url = "https://github.com/varnishcache/varnish-cache/commit/20e007a5b17c1f68f70ab42080de384f9e192900.patch"; + sha256 = "0vvihbjknb0skdv2ksn2lz89pwmn4f2rjmb6q65cvgnnjfj46s82"; + }) + ]; + }); }