2021-02-17 17:02:09 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, makeWrapper, unixtools }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "microscheme";
|
|
|
|
version = "0.9.3";
|
|
|
|
|
2021-02-17 17:02:09 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ryansuchocki";
|
|
|
|
repo = "microscheme";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "5qTWsBCfj5DCZ3f9W1bdo6WAc1DZqVxg8D7pwC95duQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-17 17:02:09 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace makefile --replace gcc ${stdenv.cc.targetPrefix}cc
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-02-17 17:02:09 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper unixtools.xxd ];
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2022-01-03 16:56:52 +00:00
|
|
|
homepage = "https://ryansuchocki.github.io/microscheme/";
|
2020-04-24 23:36:52 +00:00
|
|
|
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;
|
2021-02-17 17:02:09 +00:00
|
|
|
platforms = platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ ardumont ];
|
|
|
|
};
|
|
|
|
}
|