Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
53 lines
1.0 KiB
Nix
53 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
autoreconfHook,
|
|
pkg-config,
|
|
varnish,
|
|
libmhash,
|
|
docutils,
|
|
coreutils,
|
|
version,
|
|
sha256,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "${varnish.name}-digest";
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "varnish";
|
|
repo = "libvmod-digest";
|
|
rev = version;
|
|
inherit sha256;
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
pkg-config
|
|
docutils
|
|
];
|
|
buildInputs = [
|
|
varnish
|
|
libmhash
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace autogen.sh --replace "''${dataroot}/aclocal" "${varnish.dev}/share/aclocal"
|
|
substituteInPlace Makefile.am --replace "''${LIBVARNISHAPI_DATAROOTDIR}/aclocal" "${varnish.dev}/share/aclocal"
|
|
'';
|
|
|
|
configureFlags = [ "VMOD_DIR=$(out)/lib/varnish/vmods" ];
|
|
|
|
env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=deprecated-declarations" ];
|
|
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
description = "Digest and HMAC vmod";
|
|
homepage = "https://github.com/varnish/libvmod-digest";
|
|
inherit (varnish.meta) license platforms teams;
|
|
};
|
|
}
|