mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 04:31:52 +00:00
9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
34 lines
1 KiB
Nix
34 lines
1 KiB
Nix
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, varnish, libmhash, docutils }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "1.0.2";
|
|
name = "${varnish.name}-digest-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "varnish";
|
|
repo = "libvmod-digest";
|
|
rev = "libvmod-digest-${version}";
|
|
sha256 = "0jwkqqalydn0pwfdhirl5zjhbc3hldvhh09hxrahibr72fgmgpbx";
|
|
};
|
|
|
|
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" ];
|
|
|
|
NIX_CFLAGS_COMPILE = [ "-Wno-error=deprecated-declarations" ];
|
|
|
|
doCheck = true;
|
|
|
|
meta = with lib; {
|
|
description = "Digest and HMAC vmod";
|
|
homepage = "https://github.com/varnish/libvmod-digest";
|
|
inherit (varnish.meta) license platforms maintainers;
|
|
};
|
|
}
|