···1-{ gccStdenv, lib, git, openssl, autoconf, pkgs, makeStaticLibraries, gcc, coreutils, gnused, gnugrep,
2- src, version, git-version, stampYmd ? 0, stampHms ? 0,
3- gambit-support, optimizationSetting ? "-O1", gambit-params ? pkgs.gambit-support.stable-params }:
0000045# Note that according to a benchmark run by Marc Feeley on May 2018,
6# clang is 10x (with default settings) to 15% (with -O2) slower than GCC at compiling
···45 "--enable-shared"
46 "--enable-absolute-shared-libs" # Yes, NixOS will want an absolute path, and fix it.
47 "--enable-openssl"
048 #"--enable-default-compile-options='(compactness 9)'" # Make life easier on the JS backend
49 "--enable-default-runtime-options=${gambit-params.defaultRuntimeOptions}"
50 # "--enable-rtlib-debug" # used by Geiser, but only on recent-enough gambit, and messes js runtime
···62 # "--enable-coverage"
63 # "--enable-inline-jumps"
64 # "--enable-char-size=1" # default is 4
065 ] ++ gambit-params.extraOptions
66 # Do not enable poll on darwin due to https://github.com/gambit/gambit/issues/498
67 ++ lib.optional (!gccStdenv.isDarwin) "--enable-poll";
···1+{ gccStdenv, lib, pkgs,
2+ git, openssl, autoconf, gcc, coreutils, gnused, gnugrep,
3+ makeStaticLibraries,
4+ src, version, git-version,
5+ stampYmd ? 0, stampHms ? 0,
6+ gambit-support,
7+ optimizationSetting ? "-O1",
8+ gambit-params ? pkgs.gambit-support.stable-params }:
910# Note that according to a benchmark run by Marc Feeley on May 2018,
11# clang is 10x (with default settings) to 15% (with -O2) slower than GCC at compiling
···50 "--enable-shared"
51 "--enable-absolute-shared-libs" # Yes, NixOS will want an absolute path, and fix it.
52 "--enable-openssl"
53+ "--enable-dynamic-clib"
54 #"--enable-default-compile-options='(compactness 9)'" # Make life easier on the JS backend
55 "--enable-default-runtime-options=${gambit-params.defaultRuntimeOptions}"
56 # "--enable-rtlib-debug" # used by Geiser, but only on recent-enough gambit, and messes js runtime
···68 # "--enable-coverage"
69 # "--enable-inline-jumps"
70 # "--enable-char-size=1" # default is 4
71+ # "--enable-march=native" # Nope, makes it not work on machines older than the builder
72 ] ++ gambit-params.extraOptions
73 # Do not enable poll on darwin due to https://github.com/gambit/gambit/issues/498
74 ++ lib.optional (!gccStdenv.isDarwin) "--enable-poll";
···29 grep -Fl '#!/usr/bin/env' `find . -type f -executable` | while read f ; do
30 substituteInPlace "$f" --replace '#!/usr/bin/env' '#!${coreutils}/bin/env' ;
31 done ;
32-'';
3334## TODO: make static compilation work.
35## For that, get all the packages below to somehow expose static libraries,
···92 meta = {
93 description = "Gerbil Scheme";
94 homepage = "https://github.com/vyzo/gerbil";
95- license = lib.licenses.lgpl21; # also asl20, like Gambit
96- # NB regarding platforms: regularly tested on Linux, only occasionally on macOS.
97 # Please report success and/or failure to fare.
98 platforms = lib.platforms.unix;
99 maintainers = with lib.maintainers; [ fare ];
···29 grep -Fl '#!/usr/bin/env' `find . -type f -executable` | while read f ; do
30 substituteInPlace "$f" --replace '#!/usr/bin/env' '#!${coreutils}/bin/env' ;
31 done ;
32+ '';
3334## TODO: make static compilation work.
35## For that, get all the packages below to somehow expose static libraries,
···92 meta = {
93 description = "Gerbil Scheme";
94 homepage = "https://github.com/vyzo/gerbil";
95+ license = lib.licenses.lgpl21Only; # dual, also asl20, like Gambit
96+ # NB regarding platforms: regularly tested on Linux and on macOS.
97 # Please report success and/or failure to fare.
98 platforms = lib.platforms.unix;
99 maintainers = with lib.maintainers; [ fare ];