fork
Configure Feed
Select the types of activity you want to include in your feed.
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{
2 lib,
3 stdenv,
4 fetchurl,
5 unzip,
6 runtimeShell,
7}:
8
9stdenv.mkDerivation rec {
10 pname = "avr8-burn-omat";
11 version = "2.1.2";
12
13 src = fetchurl {
14 url = "http://avr8-burn-o-mat.aaabbb.de/AVR8_Burn-O-Mat_${
15 lib.replaceStrings [ "." ] [ "_" ] version
16 }.zip";
17 sha256 = "02k0fd0cd3y1yqip36wr3bkxbywp8913w4y7jdg6qwqxjnii58ln";
18 };
19
20 nativeBuildInputs = [ unzip ];
21
22 # move to nix-support to not create that many symlinks..
23 # TODO burnomat tries to read /usr/local/etc/avrdude.conf (but you can edit it within the settings dialog)
24 installPhase = ''
25 mkdir -p $out/{nix-support,bin}
26 mv *.jar license_gpl-3.0.txt lib *.xml *.png $out/nix-support
27 cat >> $out/bin/avr8-burn-omat << EOF
28 #!${runtimeShell}
29 cd $out/nix-support; exec java -jar AVR8_Burn_O_Mat.jar
30 EOF
31 chmod +x $out/bin/avr8-burn-omat
32 '';
33
34 meta = with lib; {
35 description = "GUI tool for avrdude";
36 mainProgram = "avr8-burn-omat";
37 homepage = "http://avr8-burn-o-mat.aaabbb.de/avr8_burn_o_mat_avrdude_gui_en.html";
38 sourceProvenance = with sourceTypes; [ binaryBytecode ];
39 license = lib.licenses.gpl3;
40 platforms = platforms.all;
41 };
42}