1 { lib, stdenv, fetchFromGitHub, makeWrapper, unixtools }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
8 owner = "ryansuchocki";
11 sha256 = "5qTWsBCfj5DCZ3f9W1bdo6WAc1DZqVxg8D7pwC95duQ=";
15 substituteInPlace makefile --replace gcc ${stdenv.cc.targetPrefix}cc
18 nativeBuildInputs = [ makeWrapper unixtools.xxd ];
20 makeFlags = [ "PREFIX=${placeholder "out"}" ];
23 homepage = "https://ryansuchocki.github.io/microscheme/";
24 description = "Scheme subset for Atmel microcontrollers";
25 mainProgram = "microscheme";
27 Microscheme is a Scheme subset/variant designed for Atmel
28 microcontrollers, especially as found on Arduino boards.
30 license = licenses.mit;
31 platforms = platforms.all;
32 maintainers = with maintainers; [ ardumont ];