8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
33 lines
921 B
Nix
33 lines
921 B
Nix
{ stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "tinyscheme";
|
|
version = "1.41";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/tinyscheme/${pname}-${version}.tar.gz";
|
|
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
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
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;
|
|
};
|
|
}
|