2017-11-26 14:51:29 +03:00
|
|
|
{ stdenv, fetchurl, pkgconfig, varnish, python, docutils, removeReferencesTo }:
|
2017-07-16 01:17:53 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-21 22:42:57 +03:00
|
|
|
version = "0.13.0";
|
2017-07-16 01:17:53 +03:00
|
|
|
name = "varnish-modules-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://download.varnish-software.com/varnish-modules/varnish-modules-${version}.tar.gz";
|
2018-02-21 22:42:57 +03:00
|
|
|
sha256 = "1nj52va7cp0swcv87zd3si80knpaa4a7na37cy9wkvgyvhf9k8mh";
|
2017-07-16 01:17:53 +03:00
|
|
|
};
|
|
|
|
|
2017-11-26 14:51:29 +03:00
|
|
|
nativeBuildInputs = [ pkgconfig docutils removeReferencesTo ];
|
2017-07-16 01:17:53 +03:00
|
|
|
buildInputs = [ varnish python ];
|
|
|
|
|
2017-11-26 14:51:29 +03: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 01:17:53 +03: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;
|
|
|
|
};
|
|
|
|
}
|