Merge pull request #272554 from clerie/clerie/arduino-ide-2.2.1
This commit is contained in:
commit
815562f445
1 changed files with 38 additions and 0 deletions
38
pkgs/by-name/ar/arduino-ide/package.nix
Normal file
38
pkgs/by-name/ar/arduino-ide/package.nix
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
{ appimageTools
|
||||||
|
, fetchurl
|
||||||
|
, lib
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
pname = "arduino-ide";
|
||||||
|
version = "2.2.1";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/arduino/arduino-ide/releases/download/${version}/arduino-ide_${version}_Linux_64bit.AppImage";
|
||||||
|
hash = "sha256-77uS/3ean3dWG/vDHG+ry238hiJlYub7H03f15eJu+I=";
|
||||||
|
};
|
||||||
|
|
||||||
|
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" ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue