forked from mirrors/nixpkgs
23 lines
852 B
Nix
23 lines
852 B
Nix
{ stdenv, fetchurl, pkgconfig, varnish, python, docutils, removeReferencesTo }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "0.10.2";
|
|
name = "varnish-modules-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "https://download.varnish-software.com/varnish-modules/varnish-modules-${version}.tar.gz";
|
|
sha256 = "0inw76pm8kcidh0lq7gm3c3bh8v6yps0z7j6ar617b8wf730w1im";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig docutils removeReferencesTo ];
|
|
buildInputs = [ varnish python ];
|
|
|
|
postInstall = "find $out -type f -exec remove-references-to -t ${varnish.dev} '{}' +"; # varnish.dev captured only as __FILE__ in assert messages
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Collection of Varnish Cache modules (vmods) by Varnish Software";
|
|
homepage = https://github.com/varnish/varnish-modules;
|
|
inherit (varnish.meta) license platforms maintainers;
|
|
};
|
|
}
|