From 922d099038873d90a39ffcdb2555936cb809d90e Mon Sep 17 00:00:00 2001 From: lillia Date: Tue, 14 Jul 2026 00:04:38 -0400 Subject: [PATCH] rename flake --- templates/arduino/flake.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 templates/arduino/flake.nix diff --git a/templates/arduino/flake.nix b/templates/arduino/flake.nix new file mode 100644 index 0000000..2df1661 --- /dev/null +++ b/templates/arduino/flake.nix @@ -0,0 +1,29 @@ +{ + description = "Example flake with a devShell"; + + inputs.nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; + outputs = { nixpkgs, ... }: + let + system = "x86_64-linux"; + pkgs = import nixpkgs { inherit system; config.allowUnfree = true; }; + in { + devShells.${system}.arduino = pkgs.mkShell { + buildInputs = with pkgs; [ + hello + nodejs + unzip + unrar + vscode.fhs + pkgsi686Linux.glibc + pkgsCross.avr.buildPackages.gcc + platformio-core + glibc_multi + clang + clang-tools + ]; + shellHook = '' + echo "Welcome to the devShell!" + ''; + }; + }; +}