2020-03-21 04:52:59 +00:00
|
|
|
{ pkgs, lib }:
|
|
|
|
|
|
|
|
rec {
|
|
|
|
stable-params = {
|
2020-10-21 05:08:26 +01:00
|
|
|
stable = true;
|
2020-03-21 04:52:59 +00:00
|
|
|
defaultRuntimeOptions = "f8,-8,t8";
|
|
|
|
buildRuntimeOptions = "f8,-8,t8";
|
|
|
|
fix-stamp = git-version : "";
|
2020-10-21 05:08:26 +01:00
|
|
|
targets = "java,js,php,python,ruby";
|
|
|
|
modules = false;
|
2020-03-21 04:52:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
unstable-params = {
|
2020-10-21 05:08:26 +01:00
|
|
|
stable = false;
|
2020-03-21 04:52:59 +00:00
|
|
|
defaultRuntimeOptions = "iL,fL,-L,tL";
|
|
|
|
buildRuntimeOptions = "i8,f8,-8,t8";
|
|
|
|
fix-stamp = git-version : ''
|
|
|
|
substituteInPlace configure \
|
|
|
|
--replace "$(grep '^PACKAGE_VERSION=.*$' configure)" 'PACKAGE_VERSION="v${git-version}"' \
|
|
|
|
--replace "$(grep '^PACKAGE_STRING=.*$' configure)" 'PACKAGE_STRING="Gambit v${git-version}"' ;
|
|
|
|
'';
|
2020-10-21 05:08:26 +01:00
|
|
|
targets = "arm,java,js,php,python,riscv-32,riscv-64,ruby,x86,x86-64"; # eats 100% cpu on _digest
|
|
|
|
modules = false;
|
2020-03-21 04:52:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export-gambopt = params : "export GAMBOPT=${params.buildRuntimeOptions} ;";
|
|
|
|
|
|
|
|
gambit-bootstrap = import ./bootstrap.nix ( pkgs );
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Optimizing Scheme to C compiler";
|
|
|
|
homepage = "http://gambitscheme.org";
|
|
|
|
license = lib.licenses.lgpl21; # dual, also asl20
|
|
|
|
# NB regarding platforms: continuously tested on Linux,
|
|
|
|
# tested on macOS once in a while, *should* work everywhere.
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
maintainers = with lib.maintainers; [ thoughtpolice raskin fare ];
|
|
|
|
};
|
|
|
|
}
|