From 672fe6521a45a8e46f5126e1c85184d189663980 Mon Sep 17 00:00:00 2001 From: Daniel Poelzleithner Date: Mon, 15 May 2023 16:10:24 +0200 Subject: [PATCH] arduinoOTA: init at 1.4.1 --- .../embedded/arduino/arduinoOTA/default.nix | 33 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/development/embedded/arduino/arduinoOTA/default.nix diff --git a/pkgs/development/embedded/arduino/arduinoOTA/default.nix b/pkgs/development/embedded/arduino/arduinoOTA/default.nix new file mode 100644 index 000000000000..1026b855770f --- /dev/null +++ b/pkgs/development/embedded/arduino/arduinoOTA/default.nix @@ -0,0 +1,33 @@ +{ lib +, buildGoModule +, fetchFromGitHub +, nix-update-script +}: +buildGoModule rec { + pname = "arduinoOTA"; + version = "1.4.1"; + + src = fetchFromGitHub { + owner = "arduino"; + repo = pname; + rev = "${version}"; + hash = "sha256-HaNMkeV/PDEotYp8+rUKFaBxGbZO8qA99Yp2sa6glz8="; + }; + + vendorHash = null; + + postPatch = '' + substituteInPlace version/version.go \ + --replace 'versionString = ""' 'versionString = "${version}"' + ''; + + passthru.updateScript = nix-update-script { }; + + meta = with lib; { + homepage = "https://github.com/arduino/arduinoOTA"; + description = "A tool for uploading programs to Arduino boards over a network"; + license = licenses.gpl3; + maintainers = with maintainers; [ poelzi ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6089c2a28597..5007fbb91a6c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2923,6 +2923,8 @@ with pkgs; arduino-mk = callPackage ../development/embedded/arduino/arduino-mk { }; + arduinoOTA = callPackage ../development/embedded/arduino/arduinoOTA { }; + apio = python3Packages.callPackage ../development/embedded/fpga/apio { }; apitrace = libsForQt5.callPackage ../applications/graphics/apitrace { };