2019-02-26 11:45:54 +00:00
|
|
|
{ stdenv, fetchurl, unzip, runtimeShell }:
|
2010-07-28 12:55:54 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2014-12-15 21:29:02 +00:00
|
|
|
name = "avr8-burn-omat-2.1.2";
|
2009-02-18 11:50:39 +00:00
|
|
|
|
2010-07-28 12:55:54 +01:00
|
|
|
src = fetchurl {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "http://avr8-burn-o-mat.aaabbb.de/AVR8_Burn-O-Mat_2_1_2.zip";
|
2017-12-05 21:50:23 +00:00
|
|
|
sha256 = "02k0fd0cd3y1yqip36wr3bkxbywp8913w4y7jdg6qwqxjnii58ln";
|
2009-02-18 11:50:39 +00:00
|
|
|
};
|
|
|
|
|
2014-12-15 21:29:02 +00:00
|
|
|
buildInputs = [ unzip ];
|
2009-02-18 11:50:39 +00:00
|
|
|
|
|
|
|
phases = "unpackPhase installPhase";
|
|
|
|
|
|
|
|
# move to nix-support to not create that many symlinks..
|
|
|
|
# TODO burnomat tries to read /usr/local/etc/avrdude.conf (but you can edit it within the settings dialog)
|
|
|
|
installPhase = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/{nix-support,bin}
|
2009-02-18 11:50:39 +00:00
|
|
|
mv *.jar license_gpl-3.0.txt lib *.xml *.png $out/nix-support
|
|
|
|
cat >> $out/bin/avr8-burn-omat << EOF
|
2019-02-26 11:45:54 +00:00
|
|
|
#!${runtimeShell}
|
|
|
|
cd $out/nix-support; exec java -jar AVR8_Burn_O_Mat.jar
|
2009-02-18 11:50:39 +00:00
|
|
|
EOF
|
|
|
|
chmod +x $out/bin/avr8-burn-omat
|
|
|
|
'';
|
|
|
|
|
2014-12-15 21:29:02 +00:00
|
|
|
meta = with stdenv.lib; {
|
2010-07-28 12:55:54 +01:00
|
|
|
description = "GUI tool for avrdude";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://avr8-burn-o-mat.aaabbb.de/avr8_burn_o_mat_avrdude_gui_en.html";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl3;
|
2014-12-15 21:29:02 +00:00
|
|
|
platforms = platforms.all;
|
2009-02-18 11:50:39 +00:00
|
|
|
};
|
|
|
|
}
|