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 13:41:18 +01:00
|
|
|
pname = "tinyscheme";
|
2021-03-09 23:02:02 +00:00
|
|
|
version = "1.42";
|
2019-01-08 01:05:38 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "mirror://sourceforge/tinyscheme/${pname}-${version}.tar.gz";
|
2021-03-09 23:02:02 +00:00
|
|
|
sha256 = "sha256-F7Cxv/0i89SdWDPiKhILM5A50s/aC0bW/FHdLwG0B60=";
|
2019-01-08 01:05:38 +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
|
2022-07-18 21:11:04 +01:00
|
|
|
cp libtinyscheme* $out/lib
|
2019-01-08 01:05:38 +00:00
|
|
|
cp scheme $out/bin/tinyscheme
|
|
|
|
'';
|
|
|
|
|
2021-01-23 13:15:07 +00:00
|
|
|
meta = with lib; {
|
2022-05-28 23:56:40 +01:00
|
|
|
broken = stdenv.isDarwin;
|
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 02:11:51 +01:00
|
|
|
homepage = "http://tinyscheme.sourceforge.net/";
|
2019-01-08 01:05:38 +00:00
|
|
|
license = licenses.bsdOriginal;
|
|
|
|
maintainers = [ maintainers.ebzzry ];
|
|
|
|
platforms = platforms.unix;
|
2021-11-27 06:49:46 +00:00
|
|
|
badPlatforms = [ "aarch64-darwin" ];
|
2019-01-08 01:05:38 +00:00
|
|
|
};
|
|
|
|
}
|