From c9defac87c79d3793d44281a029ebee80f82cc4f Mon Sep 17 00:00:00 2001 From: atse Date: Mon, 28 Oct 2024 18:05:59 +0800 Subject: [PATCH] flake: Introduce pytec to PYTHONPATH in devShell For easier testing of pytec client code in the shell. --- flake.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index c846d21..ad432c6 100644 --- a/flake.nix +++ b/flake.nix @@ -63,11 +63,10 @@ version = "0.0.0"; src = "${self}/pythermostat"; - propagatedBuildInputs = - with pkgs.python3Packages; [ - numpy - matplotlib - ]; + propagatedBuildInputs = with pkgs.python3Packages; [ + numpy + matplotlib + ]; }; in { @@ -95,6 +94,9 @@ numpy matplotlib ]); + shellHook = '' + export PYTHONPATH=`git rev-parse --show-toplevel`/pythermostat:$PYTHONPATH + ''; }; formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style;