2010-07-28 13:55:54 +02:00
|
|
|
{ stdenv, fetchurl, unzip }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2009-02-18 12:50:39 +01:00
|
|
|
name = "avr8-burn-omat-2.0.1";
|
|
|
|
|
2010-07-28 13:55:54 +02:00
|
|
|
src = fetchurl {
|
2009-02-18 12:50:39 +01:00
|
|
|
url = http://avr8-burn-o-mat.brischalle.de/AVR8_Burn-O-Mat_2_0_1.zip;
|
|
|
|
sha256 = "0nqlrbsx7z5r3b9y9wb6b7wawa3yxwx07zn7l4g4s59scxah2skk";
|
|
|
|
};
|
|
|
|
|
2010-07-28 13:55:54 +02:00
|
|
|
buildInputs = [unzip];
|
2009-02-18 12:50:39 +01: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 21:16:00 +01:00
|
|
|
mkdir -p $out/{nix-support,bin}
|
2009-02-18 12:50:39 +01:00
|
|
|
mv *.jar license_gpl-3.0.txt lib *.xml *.png $out/nix-support
|
|
|
|
cat >> $out/bin/avr8-burn-omat << EOF
|
|
|
|
#!/bin/sh
|
|
|
|
cd $out/nix-support; exec java -jar AVR8_Burn_O_Mat.jar
|
|
|
|
EOF
|
|
|
|
chmod +x $out/bin/avr8-burn-omat
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2010-07-28 13:55:54 +02:00
|
|
|
description = "GUI tool for avrdude";
|
|
|
|
homepage = http://avr8-burn-o-mat.brischalle.de/avr8_burn_o_mat_avrdude_gui_en.html;
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl3;
|
2009-02-18 12:50:39 +01:00
|
|
|
};
|
|
|
|
}
|