From 0ac8b9ed62d149d0e938bb4a4800b5b9e6f20320 Mon Sep 17 00:00:00 2001 From: Roland Coeurjoly Date: Fri, 1 Mar 2024 13:05:21 +0100 Subject: [PATCH] Add shellHook from shell.nix --- flake.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/flake.nix b/flake.nix index a8675762..dd3fc23c 100644 --- a/flake.nix +++ b/flake.nix @@ -74,6 +74,12 @@ devShell = pkgs.mkShell { buildInputs = [ self.packages.${system}.default ]; + + shellHook = '' + export TRELLIS_INSTALL_PREFIX=${pkgs.trellis} + export ICESTORM_INSTALL_PREFIX=${pkgs.icestorm} + export QT_QPA_PLATFORM_PLUGIN_PATH="${pkgs.libsForQt5.qt5.qtbase.bin}/lib/qt-${pkgs.libsForQt5.qt5.qtbase.version}/plugins"; + ''; }; }); }