2015-02-23 09:11:08 +01:00
|
|
|
{ stdenv, fetchzip, vim, avrdude, avrgcclibc, makeWrapper }:
|
2015-02-15 00:32:34 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "microscheme-${version}";
|
2015-02-23 09:11:08 +01:00
|
|
|
version = "0.9.2";
|
2015-02-15 00:32:34 +01:00
|
|
|
|
2015-02-23 09:11:08 +01:00
|
|
|
src = fetchzip {
|
|
|
|
name = "${name}-src";
|
|
|
|
url = "https://github.com/ryansuchocki/microscheme/archive/v${version}.tar.gz";
|
|
|
|
sha256 = "0ly1cphvnsip70kng9q0blb07pkyp9allav42sr6ybswqfqg60j9";
|
2015-02-15 00:32:34 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ makeWrapper vim ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2015-02-23 09:11:08 +01:00
|
|
|
make install PREFIX=$out
|
2015-02-15 00:32:34 +01:00
|
|
|
|
|
|
|
wrapProgram $out/bin/microscheme \
|
|
|
|
--prefix PATH : "${avrdude}/bin:${avrgcclibc}/bin"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://microscheme.org;
|
|
|
|
description = "A Scheme subset for Atmel microcontrollers";
|
|
|
|
longDescription = ''
|
|
|
|
Microscheme is a Scheme subset/variant designed for Atmel
|
|
|
|
microcontrollers, especially as found on Arduino boards.
|
|
|
|
'';
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ ardumont ];
|
|
|
|
};
|
|
|
|
}
|