1{ stdenv, fetchzip, vim, avrdude, avrgcclibc, makeWrapper }:
2
3stdenv.mkDerivation rec {
4 name = "microscheme-${version}";
5 version = "0.9.3";
6
7 src = fetchzip {
8 name = "${name}-src";
9 url = "https://github.com/ryansuchocki/microscheme/archive/v${version}.tar.gz";
10 sha256 = "1r3ng4pw1s9yy1h5rafra1rq19d3vmb5pzbpcz1913wz22qdd976";
11 };
12
13 buildInputs = [ makeWrapper vim ];
14
15 installPhase = ''
16 make install PREFIX=$out
17
18 wrapProgram $out/bin/microscheme \
19 --prefix PATH : "${avrdude}/bin:${avrgcclibc}/bin"
20 '';
21
22 meta = with stdenv.lib; {
23 homepage = http://microscheme.org;
24 description = "A Scheme subset for Atmel microcontrollers";
25 longDescription = ''
26 Microscheme is a Scheme subset/variant designed for Atmel
27 microcontrollers, especially as found on Arduino boards.
28 '';
29 license = licenses.mit;
30 platforms = platforms.linux;
31 maintainers = with maintainers; [ ardumont ];
32 };
33}