2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tinyscheme";
|
2021-03-12 07:09:13 +00:00
|
|
|
version = "1.42";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/tinyscheme/${pname}-${version}.tar.gz";
|
2021-03-12 07:09:13 +00:00
|
|
|
sha256 = "sha256-F7Cxv/0i89SdWDPiKhILM5A50s/aC0bW/FHdLwG0B60=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace scheme.c --replace "init.scm" "$out/lib/init.scm"
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/lib
|
|
|
|
cp init.scm $out/lib
|
|
|
|
cp scheme $out/bin/tinyscheme
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Lightweight Scheme implementation";
|
|
|
|
longDescription = ''
|
|
|
|
TinyScheme is a lightweight Scheme interpreter that implements as large a
|
|
|
|
subset of R5RS as was possible without getting very large and complicated.
|
|
|
|
'';
|
|
|
|
homepage = "http://tinyscheme.sourceforge.net/";
|
|
|
|
license = licenses.bsdOriginal;
|
|
|
|
maintainers = [ maintainers.ebzzry ];
|
|
|
|
platforms = platforms.unix;
|
2021-12-06 16:07:01 +00:00
|
|
|
badPlatforms = [ "aarch64-darwin" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|