about summary refs log tree commit diff
path: root/pkgs/development/python-modules/Wand
diff options
context:
space:
mode:
authorSilvan Mosberger <infinisil@icloud.com>2019-01-28 20:50:24 +0100
committerSilvan Mosberger <infinisil@icloud.com>2019-01-28 23:25:01 +0100
commit07c3f81aa600a5ba4f90f820659a0ba703384b47 (patch)
tree66a4482f2ae9a68afde6d8ff2811df5fe15285eb /pkgs/development/python-modules/Wand
parent9e6241ef692af5c85673b3052bc69f48fa8f4c64 (diff)
pythonPackages.Wand: Fix imagemagick path
Diffstat (limited to 'pkgs/development/python-modules/Wand')
-rw-r--r--pkgs/development/python-modules/Wand/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/Wand/default.nix b/pkgs/development/python-modules/Wand/default.nix
index 601a86ea2cfdd..cc958977b10d9 100644
--- a/pkgs/development/python-modules/Wand/default.nix
+++ b/pkgs/development/python-modules/Wand/default.nix
@@ -28,7 +28,9 @@ in buildPythonPackage rec {
   inherit magick_wand_library imagemagick_library;
 
   postPatch = ''
-    substituteAllInPlace wand/api.py
+    substituteInPlace wand/api.py --replace \
+      "magick_home = os.environ.get('MAGICK_HOME')" \
+      "magick_home = '${imagemagick}'"
   '';
 
   # tests not included with pypi release