diff --git a/buildout/software-profiles/ghostscript.cfg b/buildout/software-profiles/ghostscript.cfg
index 655509273705c7f1a6860a2d6bd1c5c38e304821..c3e1790751c7cd584e98bd0b841df735d9534329 100644
--- a/buildout/software-profiles/ghostscript.cfg
+++ b/buildout/software-profiles/ghostscript.cfg
@@ -1,8 +1,16 @@
 [buildout]
 parts = ghostscript
 
+[ghostscript-hooks-download]
+recipe = hexagonit.recipe.download
+url = http://www.nexedi.org/static/buildout-hooks/ghostscript-hooks.py-r38557
+filename = ghostscript-hooks.py
+md5sum = e7b4a88db7000d3d3222dbe803791d8f
+download-only = true
+
 [ghostscript]
 <= ghostscript-9
+pre-configure-hook = ${ghostscript-hooks-download:location}/${ghostscript-hooks-download:filename}:pre_configure_hook
 
 [ghostscript-9]
 recipe = hexagonit.recipe.cmmi