2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-19 03:14:03 +00:00
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.

39 lines
1.1 KiB
Nix
Raw Normal View History

2023-12-06 21:56:57 +00:00
{ appimageTools
, fetchurl
, lib
}:
let
pname = "arduino-ide";
2024-02-22 16:20:24 +00:00
version = "2.3.2";
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-02-22 16:20:24 +00:00
hash = "sha256-M7JKfld6DRk4hxih5MufAhW9kJ+ePDrBhE+oXFc8dYw=";
2023-12-06 21:56:57 +00:00
};
appimageContents = appimageTools.extractType2 { inherit pname version src; };
in
appimageTools.wrapType2 {
inherit pname version src;
extraInstallCommands = ''
mv $out/bin/{${pname}-${version},${pname}}
install -Dm444 ${appimageContents}/${pname}.desktop -t $out/share/applications/
install -Dm444 ${appimageContents}/${pname}.png -t $out/share/pixmaps/
'';
extraPkgs = pkgs: with pkgs; [ libsecret ];
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" ];
};
}