about summary refs log tree commit diff
path: root/pkgs/tools/graphics/graph-cli
diff options
context:
space:
mode:
authorsir4ur0n <julien.debon@pm.me>2023-02-26 23:05:58 +0100
committerJulien Debon <julien.debon@tweag.io>2023-09-02 11:43:24 +0200
commit8b8ecfa4451bef30f51d6c1db46c441d8e945e9a (patch)
tree8023341676decb961cce428062bdaaed5a1cf2bc /pkgs/tools/graphics/graph-cli
parent1f8b5a27952d16186c50b25578fdbcc540abe1d2 (diff)
graph-cli: fix runtime crash
Fixes https://github.com/NixOS/nixpkgs/issues/215079
Diffstat (limited to 'pkgs/tools/graphics/graph-cli')
-rw-r--r--pkgs/tools/graphics/graph-cli/default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/tools/graphics/graph-cli/default.nix b/pkgs/tools/graphics/graph-cli/default.nix
index c504d6b271562..96ed8e260da5e 100644
--- a/pkgs/tools/graphics/graph-cli/default.nix
+++ b/pkgs/tools/graphics/graph-cli/default.nix
@@ -1,6 +1,7 @@
 { lib
 , python3Packages
 , fetchPypi
+, qt5
 }:
 
 python3Packages.buildPythonApplication rec {
@@ -13,10 +14,18 @@ python3Packages.buildPythonApplication rec {
     sha256 = "sha256-0mxOc8RJ3GNgSbppLylIViqfYf6zwJ49pltnsyQUpSA=";
   };
 
+  nativeBuildInputs = [ qt5.wrapQtAppsHook ];
+
+  dontWrapQtApps = true;
+
+  preFixup = ''
+    makeWrapperArgs+=("''${qtWrapperArgs[@]}")
+  '';
+
   propagatedBuildInputs = with python3Packages; [
     numpy
     pandas
-    matplotlib
+    (matplotlib.override { enableQt = true; })
   ];
 
   # does not contain tests despite reference in Makefile