1 { lib, stdenv, runtimeShell, fetchurl, unzip, mono, avrdude, gtk2, xdg-utils }:
8 url = "https://github.com/ZakKemble/AVRDUDESS/releases/download/v2.18/AVRDUDESS-2.18-portable.zip";
9 sha256 = "sha256-N93FLiXp1WwhI5KwH6sho2wyFtkbODwCHOpEVbVnYdc=";
12 nativeBuildInputs = [ unzip ];
18 mkdir -p "$out/avrdudess"
21 unzip "$src" -d "$out/avrdudess"
23 cat >> "$out/bin/avrdudess" << __EOF__
25 export LD_LIBRARY_PATH="${lib.makeLibraryPath [gtk2 mono]}"
26 # We need PATH from user env for xdg-open to find its tools, which
27 # typically depend on the currently running desktop environment.
28 export PATH="\$PATH:${lib.makeBinPath [ avrdude xdg-utils ]}"
30 # avrdudess must have its resource files in its current working directory
31 cd $out/avrdudess && exec ${mono}/bin/mono "$out/avrdudess/avrdudess.exe" "\$@"
34 chmod a+x "$out/bin/"*
38 description = "GUI for AVRDUDE (AVR microcontroller programmer)";
39 homepage = "https://blog.zakkemble.net/avrdudess-a-gui-for-avrdude/";
40 changelog = "https://github.com/ZakKemble/AVRDUDESS/blob/v${version}/Changelog.txt";
41 license = licenses.gpl3;
42 platforms = platforms.linux;
43 maintainers = [ maintainers.bjornfor ];
44 mainProgram = "avrdudess";