2021-01-23 13:15:07 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2013-11-18 14:33:19 +00:00
|
|
|
|
2021-02-24 08:22:15 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "scheme48";
|
|
|
|
version = "1.9.2";
|
2013-11-18 14:33:19 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-11-09 15:41:13 +00:00
|
|
|
url = "https://s48.org/${version}/scheme48-${version}.tgz";
|
2014-09-04 14:29:58 +00:00
|
|
|
sha256 = "1x4xfm3lyz2piqcw1h01vbs1iq89zq7wrsfjgh3fxnlm1slj2jcw";
|
2013-11-18 14:33:19 +00:00
|
|
|
};
|
2021-02-24 08:22:15 +00:00
|
|
|
|
|
|
|
# Make more reproducible by removing build user and date.
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace build/build-usual-image --replace '"(made by $USER on $date)"' '""'
|
|
|
|
'';
|
|
|
|
|
2023-11-03 16:41:23 +00:00
|
|
|
# Silence warnings related to use of implicitly declared library functions and implicit ints.
|
|
|
|
# TODO: Remove and/or fix with patches the next time this package is updated.
|
|
|
|
env = lib.optionalAttrs stdenv.cc.isClang {
|
|
|
|
NIX_CFLAGS_COMPILE = toString [
|
|
|
|
"-Wno-error=implicit-function-declaration"
|
|
|
|
"-Wno-error=implicit-int"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2021-02-24 08:22:15 +00:00
|
|
|
meta = with lib; {
|
2022-11-09 15:41:13 +00:00
|
|
|
homepage = "https://s48.org/";
|
2021-02-24 08:22:15 +00:00
|
|
|
description = "Scheme 48 interpreter for R5RS";
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.siraben ];
|
|
|
|
};
|
2013-11-18 14:33:19 +00:00
|
|
|
}
|