depot/third_party/nixpkgs/pkgs/development/embedded/arduino/arduinoOTA/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

34 lines
814 B
Nix

{ 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 = "Tool for uploading programs to Arduino boards over a network";
mainProgram = "arduinoOTA";
license = licenses.gpl3;
maintainers = with maintainers; [ poelzi ];
platforms = platforms.all;
};
}