From 632bb40e189cb47e3289c39e218c2d655a8b0a81 Mon Sep 17 00:00:00 2001 From: kalipso Date: Tue, 28 Feb 2023 09:48:17 +0100 Subject: [PATCH] update flake --- flake.nix | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 50028c7..8373f06 100644 --- a/flake.nix +++ b/flake.nix @@ -14,15 +14,37 @@ in { devShell = pkgs.mkShell { + ARDUINO_PATH="${pkgs.arduino-core}"; + shellHok = '' echo "entering pentatrack devenv" + export PATH="$PATH:${pkgs.arduino-core}/share/arduino/" ''; - nativeBuildInputs = [ - pkgs.python310Packages.grip + nativeBuildInputs = with pkgs; [ + python310Packages.grip + arduino + arduino-cli ]; }; + + # here some compiler commands would be necessary i guess lul + #packages.PentaTrack = pkgs.mkDerivation rec { + # name = "PentaTrack_v${version}"; + # src = ./.; + # version = "0.1.0"; + + # ARDUINO_PATH="${pkgs.arduino-core}"; + + # buildInputs = with pkgs; [ + # arduino + # ]; + + # shellHook = '' + # export PATH="$PATH:${pkgs.arduino-core}/share/arduino/" + # ''; + #}; } ); }