···11-{ gccStdenv, lib, git, openssl, autoconf, pkgs, makeStaticLibraries, gcc, coreutils, gnused, gnugrep,
22- src, version, git-version, stampYmd ? 0, stampHms ? 0,
33- gambit-support, optimizationSetting ? "-O1", gambit-params ? pkgs.gambit-support.stable-params }:
11+{ gccStdenv, lib, pkgs,
22+ git, openssl, autoconf, gcc, coreutils, gnused, gnugrep,
33+ makeStaticLibraries,
44+ src, version, git-version,
55+ stampYmd ? 0, stampHms ? 0,
66+ gambit-support,
77+ optimizationSetting ? "-O1",
88+ gambit-params ? pkgs.gambit-support.stable-params }:
49510# Note that according to a benchmark run by Marc Feeley on May 2018,
611# clang is 10x (with default settings) to 15% (with -O2) slower than GCC at compiling
···4550 "--enable-shared"
4651 "--enable-absolute-shared-libs" # Yes, NixOS will want an absolute path, and fix it.
4752 "--enable-openssl"
5353+ "--enable-dynamic-clib"
4854 #"--enable-default-compile-options='(compactness 9)'" # Make life easier on the JS backend
4955 "--enable-default-runtime-options=${gambit-params.defaultRuntimeOptions}"
5056 # "--enable-rtlib-debug" # used by Geiser, but only on recent-enough gambit, and messes js runtime
···6268 # "--enable-coverage"
6369 # "--enable-inline-jumps"
6470 # "--enable-char-size=1" # default is 4
7171+ # "--enable-march=native" # Nope, makes it not work on machines older than the builder
6572 ] ++ gambit-params.extraOptions
6673 # Do not enable poll on darwin due to https://github.com/gambit/gambit/issues/498
6774 ++ lib.optional (!gccStdenv.isDarwin) "--enable-poll";
···2929 grep -Fl '#!/usr/bin/env' `find . -type f -executable` | while read f ; do
3030 substituteInPlace "$f" --replace '#!/usr/bin/env' '#!${coreutils}/bin/env' ;
3131 done ;
3232-'';
3232+ '';
33333434## TODO: make static compilation work.
3535## For that, get all the packages below to somehow expose static libraries,
···9292 meta = {
9393 description = "Gerbil Scheme";
9494 homepage = "https://github.com/vyzo/gerbil";
9595- license = lib.licenses.lgpl21; # also asl20, like Gambit
9696- # NB regarding platforms: regularly tested on Linux, only occasionally on macOS.
9595+ license = lib.licenses.lgpl21Only; # dual, also asl20, like Gambit
9696+ # NB regarding platforms: regularly tested on Linux and on macOS.
9797 # Please report success and/or failure to fare.
9898 platforms = lib.platforms.unix;
9999 maintainers = with lib.maintainers; [ fare ];