about summary refs log tree commit diff
path: root/pkgs/development/python-modules/matplotlib-sixel/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/matplotlib-sixel/default.nix')
-rw-r--r--pkgs/development/python-modules/matplotlib-sixel/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/matplotlib-sixel/default.nix b/pkgs/development/python-modules/matplotlib-sixel/default.nix
index e3f661571879d..451f2a1a3dbea 100644
--- a/pkgs/development/python-modules/matplotlib-sixel/default.nix
+++ b/pkgs/development/python-modules/matplotlib-sixel/default.nix
@@ -1,6 +1,7 @@
 { lib
 , buildPythonPackage
 , fetchPypi
+, imagemagick
 , matplotlib
 }:
 
@@ -15,6 +16,11 @@ buildPythonPackage rec {
 
   propagatedBuildInputs = [ matplotlib ];
 
+  postPatch = ''
+    substituteInPlace sixel/sixel.py \
+      --replace 'Popen(["convert",' 'Popen(["${imagemagick}/bin/convert",'
+  '';
+
   pythonImportsCheck = [ "sixel" ];
 
   meta = with lib; {