1{ stdenv, fetchzip, vim, avrdude, avrgcclibc, makeWrapper }:
2
3stdenv.mkDerivation rec {
4 name = "microscheme-${version}";
5 version = "0.9.2";
6
7 src = fetchzip {
8 name = "${name}-src";
9 url = "https://github.com/ryansuchocki/microscheme/archive/v${version}.tar.gz";
10 sha256 = "0ly1cphvnsip70kng9q0blb07pkyp9allav42sr6ybswqfqg60j9";
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}