2017-11-26 12:51:29 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, varnish, python, docutils, removeReferencesTo }:
|
2017-07-16 00:17:53 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-21 20:42:57 +01:00
|
|
|
version = "0.13.0";
|
2017-07-16 00:17:53 +02:00
|
|
|
name = "varnish-modules-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://download.varnish-software.com/varnish-modules/varnish-modules-${version}.tar.gz";
|
2018-02-21 20:42:57 +01:00
|
|
|
sha256 = "1nj52va7cp0swcv87zd3si80knpaa4a7na37cy9wkvgyvhf9k8mh";
|
2017-07-16 00:17:53 +02:00
|
|
|
};
|
|
|
|
|
2017-11-26 12:51:29 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig docutils removeReferencesTo ];
|
2017-07-16 00:17:53 +02:00
|
|
|
buildInputs = [ varnish python ];
|
|
|
|
|
2017-11-26 12:51:29 +01:00
|
|
|
postInstall = "find $out -type f -exec remove-references-to -t ${varnish.dev} '{}' +"; # varnish.dev captured only as __FILE__ in assert messages
|
|
|
|
|
2017-07-16 00:17:53 +02:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|