From 07f73bed416a006279795f740b29054e8679bf4c Mon Sep 17 00:00:00 2001 From: topquark12 Date: Wed, 1 Jun 2022 13:09:01 +0800 Subject: [PATCH] fix pyqtgraph on nixos --- flake.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/flake.nix b/flake.nix index 588f1ff..2701408 100644 --- a/flake.nix +++ b/flake.nix @@ -73,6 +73,11 @@ ] ++ (with python3Packages; [ numpy matplotlib pyqtgraph ]); + shellHook= + '' + export QT_PLUGIN_PATH=${pkgs.qt5.qtbase}/${pkgs.qt5.qtbase.dev.qtPluginPrefix} + export QML2_IMPORT_PATH=${pkgs.qt5.qtbase}/${pkgs.qt5.qtbase.dev.qtQmlPrefix} + ''; }; defaultPackage.x86_64-linux = thermostat; };