about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pdf2docx/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/pdf2docx/default.nix')
-rw-r--r--pkgs/development/python-modules/pdf2docx/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/pdf2docx/default.nix b/pkgs/development/python-modules/pdf2docx/default.nix
index af91594808b5..12d347227a9b 100644
--- a/pkgs/development/python-modules/pdf2docx/default.nix
+++ b/pkgs/development/python-modules/pdf2docx/default.nix
@@ -49,7 +49,7 @@ buildPythonPackage {
     python-docx
   ];
 
-  postInstall = lib.optionalString stdenv.isLinux ''
+  postInstall = lib.optionalString stdenv.hostPlatform.isLinux ''
     # on linux the icon file can only be xbm format
     convert $out/${python.sitePackages}/pdf2docx/gui/icon.ico \
       $out/${python.sitePackages}/pdf2docx/gui/icon.xbm