From 7b8d25f1606580fb3214a861e33faf1a553e85d9 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; };