2021-01-23 13:15:07 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2019-01-08 01:05:38 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "tinyscheme";
|
2019-01-08 01:05:38 +00:00
|
|
|
version = "1.41";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "mirror://sourceforge/tinyscheme/${pname}-${version}.tar.gz";
|
2019-01-08 01:05:38 +00:00
|
|
|
sha256 = "168rk4zrlhsknbvldq2jsgabpwlqkx6la44gkqmijmf7jhs11h7a";
|
|
|
|
};
|
|
|
|
|
|
|
|
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-01-23 13:15:07 +00:00
|
|
|
meta = with lib; {
|
2019-01-08 01:05:38 +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.
|
|
|
|
'';
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://tinyscheme.sourceforge.net/";
|
2019-01-08 01:05:38 +00:00
|
|
|
license = licenses.bsdOriginal;
|
|
|
|
maintainers = [ maintainers.ebzzry ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|