about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvolth <volth@webmaster.ms>2017-11-26 11:51:29 +0000
committerGitHub <noreply@github.com>2017-11-26 11:51:29 +0000
commitf52fcbae20ecf9b9941fa9fd2fc7ea1f7419a578 (patch)
tree89862e5b9c217b62da66ee34b7759a7116bcfc3c
parente1ab684780655d7b6e8e7299f7c0d8a1ce63590c (diff)
downloadnixlib-f52fcbae20ecf9b9941fa9fd2fc7ea1f7419a578.tar
nixlib-f52fcbae20ecf9b9941fa9fd2fc7ea1f7419a578.tar.gz
nixlib-f52fcbae20ecf9b9941fa9fd2fc7ea1f7419a578.tar.bz2
nixlib-f52fcbae20ecf9b9941fa9fd2fc7ea1f7419a578.tar.lz
nixlib-f52fcbae20ecf9b9941fa9fd2fc7ea1f7419a578.tar.xz
nixlib-f52fcbae20ecf9b9941fa9fd2fc7ea1f7419a578.tar.zst
nixlib-f52fcbae20ecf9b9941fa9fd2fc7ea1f7419a578.zip
varnish-modules: remove references to varnish.dev
-rw-r--r--pkgs/servers/varnish/modules.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/servers/varnish/modules.nix b/pkgs/servers/varnish/modules.nix
index c37fae4ba3d2..8327b2ca5166 100644
--- a/pkgs/servers/varnish/modules.nix
+++ b/pkgs/servers/varnish/modules.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, pkgconfig, varnish, python, docutils }:
+{ stdenv, fetchurl, pkgconfig, varnish, python, docutils, removeReferencesTo }:
 
 stdenv.mkDerivation rec {
   version = "0.10.2";
@@ -9,9 +9,11 @@ stdenv.mkDerivation rec {
     sha256 = "0inw76pm8kcidh0lq7gm3c3bh8v6yps0z7j6ar617b8wf730w1im";
   };
 
-  nativeBuildInputs = [ pkgconfig docutils ];
+  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;