mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 03:03:37 +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.
37 lines
1.2 KiB
Nix
37 lines
1.2 KiB
Nix
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, varnish, docutils, removeReferencesTo }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "0.15.0";
|
|
name = "${varnish.name}-modules-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "varnish";
|
|
repo = "varnish-modules";
|
|
rev = version;
|
|
sha256 = "00p9syl765lfg1d2ka7da6h46dfl388f8h36x9cmrjix95rg0yr8";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
docutils
|
|
pkg-config
|
|
removeReferencesTo
|
|
varnish.python # use same python version as varnish server
|
|
];
|
|
|
|
buildInputs = [ varnish ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace bootstrap --replace "''${dataroot}/aclocal" "${varnish.dev}/share/aclocal"
|
|
substituteInPlace Makefile.am --replace "''${LIBVARNISHAPI_DATAROOTDIR}/aclocal" "${varnish.dev}/share/aclocal"
|
|
'';
|
|
|
|
postInstall = "find $out -type f -exec remove-references-to -t ${varnish.dev} '{}' +"; # varnish.dev captured only as __FILE__ in assert messages
|
|
|
|
meta = with lib; {
|
|
description = "Collection of Varnish Cache modules (vmods) by Varnish Software";
|
|
homepage = "https://github.com/varnish/varnish-modules";
|
|
inherit (varnish.meta) license platforms maintainers;
|
|
};
|
|
}
|