From 109926247902061818e6d3ee6103fb2edd3f70ec Mon Sep 17 00:00:00 2001 From: Harinn Date: Sat, 7 Feb 2026 00:55:00 +0700 Subject: [PATCH] platformio: 6.1.18 -> 6.1.19 --- pkgs/by-name/pl/platformio-core/package.nix | 10 ++++++++-- .../platformio-core/use-local-spdx-license-list.patch | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/pl/platformio-core/package.nix b/pkgs/by-name/pl/platformio-core/package.nix index f14cbc5fa303..8f2c6cee1962 100644 --- a/pkgs/by-name/pl/platformio-core/package.nix +++ b/pkgs/by-name/pl/platformio-core/package.nix @@ -31,7 +31,7 @@ in with python3Packages; buildPythonApplication rec { pname = "platformio"; - version = "6.1.18"; + version = "6.1.19"; pyproject = true; # pypi tarballs don't contain tests - https://github.com/platformio/platformio-core/issues/1964 @@ -39,7 +39,7 @@ buildPythonApplication rec { owner = "platformio"; repo = "platformio-core"; tag = "v${version}"; - hash = "sha256-h9/xDWXCoGHQ9r2f/ZzAtwTAs4qzDrvVAQ2kuLS9Lk8="; + hash = "sha256-9pv2fbShddfYqBFxsQEj7nU1e772gUQEQINXRO/RMcQ="; }; outputs = [ @@ -94,6 +94,7 @@ buildPythonApplication rec { intelhex lockfile marshmallow + packaging pip pyelftools pyparsing @@ -131,6 +132,11 @@ buildPythonApplication rec { mkdir -p $udev/lib/udev/rules.d cp platformio/assets/system/99-platformio-udev.rules $udev/lib/udev/rules.d/99-platformio-udev.rules + # Avoid platformio writing state into /build/.home when generating completions. + export HOME=$TMPDIR + export PLATFORMIO_CORE_DIR=$TMPDIR/platformio-core + mkdir -p "$PLATFORMIO_CORE_DIR" + installShellCompletion --cmd platformio \ --bash <(_PLATFORMIO_COMPLETE=bash_source $out/bin/platformio) \ --zsh <(_PLATFORMIO_COMPLETE=zsh_source $out/bin/platformio) \ diff --git a/pkgs/by-name/pl/platformio-core/use-local-spdx-license-list.patch b/pkgs/by-name/pl/platformio-core/use-local-spdx-license-list.patch index 6496699a799c..8ae00149ecfb 100644 --- a/pkgs/by-name/pl/platformio-core/use-local-spdx-license-list.patch +++ b/pkgs/by-name/pl/platformio-core/use-local-spdx-license-list.patch @@ -6,7 +6,7 @@ index 47efae59..6c2cfaed 100644 @staticmethod @memoized(expire="1h") def load_spdx_licenses(): -- version = "3.26.0" +- version = "3.27.0" - spdx_data_url = ( - "https://raw.githubusercontent.com/spdx/license-list-data/" - f"v{version}/json/licenses.json"