nixpkgs/pkgs/development/compilers/microscheme/default.nix

34 lines
965 B
Nix
Raw Normal View History

{ stdenv, fetchzip, vim, avrdude, avrgcclibc, makeWrapper }:
stdenv.mkDerivation rec {
name = "microscheme-${version}";
2016-06-20 16:29:23 +02:00
version = "0.9.3";
src = fetchzip {
name = "${name}-src";
url = "https://github.com/ryansuchocki/microscheme/archive/v${version}.tar.gz";
2016-06-20 16:29:23 +02:00
sha256 = "1r3ng4pw1s9yy1h5rafra1rq19d3vmb5pzbpcz1913wz22qdd976";
};
buildInputs = [ makeWrapper vim ];
installPhase = ''
make install PREFIX=$out
wrapProgram $out/bin/microscheme \
2016-08-23 00:06:51 +02:00
--prefix PATH : "${stdenv.lib.makeBinPath [ avrdude avrgcclibc ]}"
'';
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 ];
};
}