lol
1{ pkgs, lib }:
2
3rec {
4 stable-params = {
5 stable = true;
6 defaultRuntimeOptions = "f8,-8,t8";
7 buildRuntimeOptions = "f8,-8,t8";
8 fix-stamp = git-version : "";
9 targets = "java,js,php,python,ruby";
10 modules = false;
11 };
12
13 unstable-params = {
14 stable = false;
15 defaultRuntimeOptions = "iL,fL,-L,tL";
16 buildRuntimeOptions = "i8,f8,-8,t8";
17 fix-stamp = git-version : ''
18 substituteInPlace configure \
19 --replace "$(grep '^PACKAGE_VERSION=.*$' configure)" 'PACKAGE_VERSION="v${git-version}"' \
20 --replace "$(grep '^PACKAGE_STRING=.*$' configure)" 'PACKAGE_STRING="Gambit v${git-version}"' ;
21 '';
22 targets = "arm,java,js,php,python,riscv-32,riscv-64,ruby,x86,x86-64"; # eats 100% cpu on _digest
23 modules = false;
24 };
25
26 export-gambopt = params : "export GAMBOPT=${params.buildRuntimeOptions} ;";
27
28 gambit-bootstrap = import ./bootstrap.nix ( pkgs );
29
30 meta = {
31 description = "Optimizing Scheme to C compiler";
32 homepage = "http://gambitscheme.org";
33 license = lib.licenses.lgpl21; # dual, also asl20
34 # NB regarding platforms: continuously tested on Linux,
35 # tested on macOS once in a while, *should* work everywhere.
36 platforms = lib.platforms.unix;
37 maintainers = with lib.maintainers; [ thoughtpolice raskin fare ];
38 };
39}