mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 10:12:58 +00:00
c6128d2feb
* nixos/varnish: command line compatible with varnish 5.2.1, fixes https://github.com/NixOS/nixpkgs/issues/27409 * nixos/varnish: add support for modules (services.varnish.extraModules) * varnish-modules: init at 0.10.2 * varnish-geoip: init at 1.0.2 * varnish-rtstatus: init at 1.2.0 * varnish-digest: init at 1.0.1 * added services.varnish.extraCommandLine option
32 lines
945 B
Nix
32 lines
945 B
Nix
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, varnish, libmhash, docutils }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "1.0.1";
|
|
name = "varnish-digest-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "varnish";
|
|
repo = "libvmod-digest";
|
|
rev = "libvmod-digest-${version}";
|
|
sha256 = "0v18bqbsblhajpx5qvczic3psijhx5l2p2qlw1dkd6zl33hhppy7";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig docutils ];
|
|
buildInputs = [ varnish libmhash ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace autogen.sh --replace "-I \''${dataroot}/aclocal" ""
|
|
substituteInPlace Makefile.am --replace "-I \''${LIBVARNISHAPI_DATAROOTDIR}/aclocal" ""
|
|
'';
|
|
|
|
configureFlags = [ "VMOD_DIR=$(out)/lib/varnish/vmods" ];
|
|
|
|
doCheck = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Digest and HMAC vmod";
|
|
homepage = https://github.com/varnish/libvmod-digest;
|
|
inherit (varnish.meta) license platforms maintainers;
|
|
};
|
|
}
|