From 58c0fe5afa261e936176581f13b137991fc67d34 Mon Sep 17 00:00:00 2001 From: Stefan Frijters Date: Fri, 6 Dec 2024 23:21:56 +0100 Subject: [PATCH] Update flake inputs (arduino-cli 1.1.1) --- README.md | 6 +++--- blink/sketch.yaml | 2 +- flake.lock | 12 ++++++------ flake.nix | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 97777ec..88a4fd2 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ $ make -C blink upload ## nix develop -`nix develop` provides a reproducible development environment via a [Nix flake](flake.nix): `arduino-cli` and other system packages are pinned via Nix, but `arduino-cli` still downloads its own libraries. These are in turn pinned via the the [build profile](https://arduino.github.io/arduino-cli/1.0/sketch-project-file/) in the [sketch.yaml](blink/sketch.yaml) file. +`nix develop` provides a reproducible development environment via a [Nix flake](flake.nix): `arduino-cli` and other system packages are pinned via Nix, but `arduino-cli` still downloads its own libraries. These are in turn pinned via the the [build profile](https://arduino.github.io/arduino-cli/1.1/sketch-project-file/) in the [sketch.yaml](blink/sketch.yaml) file. For NixOS: make sure the user is in the `dialout` group to access the serial port. @@ -24,7 +24,7 @@ users.users..extraGroups = [ "dialout" ]; ## arduino-cli -Current version pinned via `nixpkgs`: 1.0.4. +Current version pinned via `nixpkgs`: 1.1.1. Use `make` for some predefined options to compile and upload the sketch. @@ -32,7 +32,7 @@ You may need to modify the options at the top of the [Makefile](blink/Makefile) You may need to modify the options in [sketch.yaml](blink/sketch.yaml) to make it work on a different device (fqbn/platform). In its original state it's set up for the Wemos D1 Mini. -Hints to compile / upload from command line without the `Makefile`: https://arduino.github.io/arduino-cli/1.0/getting-started/ . +Hints to compile / upload from command line without the `Makefile`: https://arduino.github.io/arduino-cli/1.1/getting-started/ . ## Cache directory diff --git a/blink/sketch.yaml b/blink/sketch.yaml index c67052e..859aedd 100644 --- a/blink/sketch.yaml +++ b/blink/sketch.yaml @@ -1,4 +1,4 @@ -# https://arduino.github.io/arduino-cli/1.0/sketch-project-file/ +# https://arduino.github.io/arduino-cli/1.1/sketch-project-file/ profiles: blink: fqbn: esp8266:esp8266:d1_mini diff --git a/flake.lock b/flake.lock index debe17f..25d6bc8 100644 --- a/flake.lock +++ b/flake.lock @@ -5,11 +5,11 @@ "systems": "systems" }, "locked": { - "lastModified": 1726560853, - "narHash": "sha256-X6rJYSESBVr3hBoH0WbKE5KvhPU5bloyZ2L4K60/fPQ=", + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", "owner": "numtide", "repo": "flake-utils", - "rev": "c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", "type": "github" }, "original": { @@ -20,11 +20,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1727803471, - "narHash": "sha256-WuEr1YO08AnZbZ5/Iq681sevktWZ55NQ/xaqeSJ1Q+A=", + "lastModified": 1733523040, + "narHash": "sha256-sZz6iOmq0YRSTVopSNkVYIcEjPuVczx0SmaHzWs8m00=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "dbed7533773054fb309d66f3f2c2811df5da3b68", + "rev": "77962d4e31e519890cf2e1c19c5776541d29bd22", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 6cbec2e..19fd772 100644 --- a/flake.nix +++ b/flake.nix @@ -25,7 +25,7 @@ # The variables starting with underscores are custom, # the ones starting with ARDUINO are used by arduino-cli. - # See https://arduino.github.io/arduino-cli/1.0/configuration/ . + # See https://arduino.github.io/arduino-cli/1.1/configuration/ . # Store everything that arduino-cli downloads in a directory # reserved for this project, and following the XDG specification,