2024-01-02 11:29:13 +00:00
|
|
|
{ appimageTools
|
|
|
|
, fetchurl
|
|
|
|
, lib
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "arduino-ide";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2.3.2";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/arduino/arduino-ide/releases/download/${version}/arduino-ide_${version}_Linux_64bit.AppImage";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-M7JKfld6DRk4hxih5MufAhW9kJ+ePDrBhE+oXFc8dYw=";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
appimageContents = appimageTools.extractType2 { inherit pname version src; };
|
|
|
|
in
|
|
|
|
appimageTools.wrapType2 {
|
|
|
|
inherit pname version src;
|
|
|
|
|
|
|
|
extraInstallCommands = ''
|
|
|
|
install -Dm444 ${appimageContents}/${pname}.desktop -t $out/share/applications/
|
|
|
|
install -Dm444 ${appimageContents}/${pname}.png -t $out/share/pixmaps/
|
2024-05-15 15:35:15 +00:00
|
|
|
substituteInPlace $out/share/applications/${pname}.desktop --replace-fail 'Exec=AppRun --no-sandbox %U' 'Exec=${pname} %U'
|
2024-01-02 11:29:13 +00:00
|
|
|
'';
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
extraPkgs = pkgs: [ pkgs.libsecret ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Open-source electronics prototyping platform";
|
|
|
|
homepage = "https://www.arduino.cc/en/software";
|
|
|
|
changelog = "https://github.com/arduino/arduino-ide/releases/tag/${version}";
|
|
|
|
license = licenses.agpl3Only;
|
|
|
|
mainProgram = "arduino-ide";
|
|
|
|
maintainers = with maintainers; [ clerie ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|