1 { lib, stdenv, fetchurl, unzip, runtimeShell }:
3 stdenv.mkDerivation rec {
4 pname = "avr8-burn-omat";
8 url = "http://avr8-burn-o-mat.aaabbb.de/AVR8_Burn-O-Mat_${lib.replaceStrings ["."] ["_"] version}.zip";
9 sha256 = "02k0fd0cd3y1yqip36wr3bkxbywp8913w4y7jdg6qwqxjnii58ln";
12 nativeBuildInputs = [ unzip ];
14 # move to nix-support to not create that many symlinks..
15 # TODO burnomat tries to read /usr/local/etc/avrdude.conf (but you can edit it within the settings dialog)
17 mkdir -p $out/{nix-support,bin}
18 mv *.jar license_gpl-3.0.txt lib *.xml *.png $out/nix-support
19 cat >> $out/bin/avr8-burn-omat << EOF
21 cd $out/nix-support; exec java -jar AVR8_Burn_O_Mat.jar
23 chmod +x $out/bin/avr8-burn-omat
27 description = "GUI tool for avrdude";
28 mainProgram = "avr8-burn-omat";
29 homepage = "http://avr8-burn-o-mat.aaabbb.de/avr8_burn_o_mat_avrdude_gui_en.html";
30 sourceProvenance = with sourceTypes; [ binaryBytecode ];
31 license = lib.licenses.gpl3;
32 platforms = platforms.all;