Arduino: Difference between revisions

imported>Clerie
No edit summary
Artturin (talk | contribs)
tweak shell.nix
Line 14: Line 14:
=== shell.nix ===
=== shell.nix ===


<syntaxHighlight lang=nix>
<syntaxhighlight lang="nix">
{ pkgs ? import <nixpkgs> {} }:
{
 
  pkgs ? import <nixpkgs> { },
with pkgs;
}:
 
pkgs.callPackage (
mkShell {
  {
  buildInputs = [
    mkShell,
    arduino
    arduino,
     #gnumake # upload with Makefile
  }:
    #screen # serial console
  mkShell {
   ];
    strictDeps = true;
}
    nativeBuildInputs = [
</syntaxHighlight>
      arduino
     ];
   }
) { }
</syntaxhighlight>


=== Upload program ===
=== Upload program ===