From 07c3f81aa600a5ba4f90f820659a0ba703384b47 Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Mon, 28 Jan 2019 20:50:24 +0100 Subject: [PATCH] pythonPackages.Wand: Fix imagemagick path --- pkgs/development/python-modules/Wand/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/Wand/default.nix b/pkgs/development/python-modules/Wand/default.nix index 601a86ea2cf..cc958977b10 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