nixpkgs/pkgs/by-name/ar/arduino-ide/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
1.2 KiB
Nix
Raw Normal View History

2023-12-06 21:56:57 +00:00
{ appimageTools
, fetchurl
, lib
}:
let
pname = "arduino-ide";
2024-09-25 12:20:39 +00:00
version = "2.3.3";
2023-12-06 21:56:57 +00:00
src = fetchurl {
url = "https://github.com/arduino/arduino-ide/releases/download/${version}/arduino-ide_${version}_Linux_64bit.AppImage";
2024-09-25 12:20:39 +00:00
hash = "sha256-VJGO3X1PUKE0OLr5PKH5uTE3rX0SlyrD6vdYdFdzHxk=";
2023-12-06 21:56:57 +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-10 16:48:03 +00:00
substituteInPlace $out/share/applications/${pname}.desktop --replace-fail 'Exec=AppRun --no-sandbox %U' 'Exec=${pname} %U'
2023-12-06 21:56:57 +00:00
'';
extraPkgs = pkgs: [ pkgs.libsecret ];
2023-12-06 21:56:57 +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" ];
};
}