aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/compilers/gambit
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/compilers/gambit')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/compilers/gambit/build.nix2
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/compilers/gambit/gambit-support.nix6
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/compilers/gambit/unstable.nix8
3 files changed, 12 insertions, 4 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/compilers/gambit/build.nix b/infra/libkookie/nixpkgs/pkgs/development/compilers/gambit/build.nix
index c6a48bd744e7..a4b884147db1 100644
--- a/infra/libkookie/nixpkgs/pkgs/development/compilers/gambit/build.nix
+++ b/infra/libkookie/nixpkgs/pkgs/development/compilers/gambit/build.nix
@@ -35,6 +35,7 @@ gccStdenv.mkDerivation rec {
#runtimeDeps = [ gnused gnugrep ];
configureFlags = [
+ "--enable-targets=${gambit-params.targets}"
"--enable-single-host"
"--enable-c-opt=${optimizationSetting}"
"--enable-gcc-opts"
@@ -94,6 +95,7 @@ gccStdenv.mkDerivation rec {
# Now use the bootstrap compiler to build the real thing!
make -j$NIX_BUILD_CORES from-scratch
+ ${lib.optionalString gambit-params.modules "make -j$NIX_BUILD_CORES modules"}
'';
postInstall = ''
diff --git a/infra/libkookie/nixpkgs/pkgs/development/compilers/gambit/gambit-support.nix b/infra/libkookie/nixpkgs/pkgs/development/compilers/gambit/gambit-support.nix
index 0e78831f2e4e..be745367ec03 100644
--- a/infra/libkookie/nixpkgs/pkgs/development/compilers/gambit/gambit-support.nix
+++ b/infra/libkookie/nixpkgs/pkgs/development/compilers/gambit/gambit-support.nix
@@ -2,12 +2,16 @@
rec {
stable-params = {
+ stable = true;
defaultRuntimeOptions = "f8,-8,t8";
buildRuntimeOptions = "f8,-8,t8";
fix-stamp = git-version : "";
+ targets = "java,js,php,python,ruby";
+ modules = false;
};
unstable-params = {
+ stable = false;
defaultRuntimeOptions = "iL,fL,-L,tL";
buildRuntimeOptions = "i8,f8,-8,t8";
fix-stamp = git-version : ''
@@ -15,6 +19,8 @@ rec {
--replace "$(grep '^PACKAGE_VERSION=.*$' configure)" 'PACKAGE_VERSION="v${git-version}"' \
--replace "$(grep '^PACKAGE_STRING=.*$' configure)" 'PACKAGE_STRING="Gambit v${git-version}"' ;
'';
+ targets = "arm,java,js,php,python,riscv-32,riscv-64,ruby,x86,x86-64"; # eats 100% cpu on _digest
+ modules = false;
};
export-gambopt = params : "export GAMBOPT=${params.buildRuntimeOptions} ;";
diff --git a/infra/libkookie/nixpkgs/pkgs/development/compilers/gambit/unstable.nix b/infra/libkookie/nixpkgs/pkgs/development/compilers/gambit/unstable.nix
index 7284e5b531d8..a689991a1e13 100644
--- a/infra/libkookie/nixpkgs/pkgs/development/compilers/gambit/unstable.nix
+++ b/infra/libkookie/nixpkgs/pkgs/development/compilers/gambit/unstable.nix
@@ -1,13 +1,13 @@
{ callPackage, fetchFromGitHub, gambit-support }:
callPackage ./build.nix {
- version = "unstable-2020-07-29";
- git-version = "4.9.3-1232-gbba388b8";
+ version = "unstable-2020-09-20";
+ git-version = "4.9.3-1234-g6acd87df";
src = fetchFromGitHub {
owner = "feeley";
repo = "gambit";
- rev = "bba388b80ca62a77883a8936d64b03316808696a";
- sha256 = "0iqlp1mvxz8g32kqrqm0phnnp1i5c4jrapqh2wqwa8fh1vgnizg1";
+ rev = "6acd87dfa95bfca33082a431e72f023345dc07ee";
+ sha256 = "0a3dy4ij8hzlp3sjam4b6dp6yvyz5d7g2x784qm3gp89fi2ck56r";
};
gambit-params = gambit-support.unstable-params;
}