After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.
Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.
A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.
This commit was automatically created and can be verified using
nix-build a08b3a4d19.tar.gz \
--argstr baseRev b32a094368
result/bin/apply-formatting $NIXPKGS_PATH
53 lines
1.3 KiB
Nix
53 lines
1.3 KiB
Nix
# This derivation is a reduced-functionality variant of Gambit stable,
|
|
# used to compile the full version of Gambit stable *and* unstable.
|
|
|
|
{
|
|
gccStdenv,
|
|
fetchurl,
|
|
autoconf,
|
|
gcc,
|
|
coreutils,
|
|
gambit-support,
|
|
...
|
|
}:
|
|
# As explained in build.nix, GCC compiles Gambit 10x faster than Clang, for code 3x better
|
|
|
|
gccStdenv.mkDerivation {
|
|
pname = "gambit-bootstrap";
|
|
version = "4.9.5";
|
|
|
|
src = fetchurl {
|
|
url = "https://gambitscheme.org/4.9.5/gambit-v4_9_5.tgz";
|
|
sha256 = "sha256-4o74218OexFZcgwVAFPcq498TK4fDlyDiUR5cHP4wdw=";
|
|
};
|
|
|
|
buildInputs = [ autoconf ];
|
|
|
|
configurePhase = ''
|
|
export CC=${gcc}/bin/gcc CXX=${gcc}/bin/g++ \
|
|
CPP=${gcc}/bin/cpp CXXCPP=${gcc}/bin/cpp LD=${gcc}/bin/ld \
|
|
XMKMF=${coreutils}/bin/false
|
|
unset CFLAGS LDFLAGS LIBS CPPFLAGS CXXFLAGS
|
|
./configure --prefix=$out/gambit
|
|
'';
|
|
|
|
buildPhase = ''
|
|
# Copy the (configured) sources now, not later, so we don't have to filter out
|
|
# all the intermediate build products.
|
|
mkdir -p $out/gambit ; cp -rp . $out/gambit/
|
|
|
|
# build the gsc-boot* compiler
|
|
make -j$NIX_BUILD_CORES bootstrap
|
|
'';
|
|
|
|
installPhase = ''
|
|
cp -fa ./gsc-boot $out/gambit/
|
|
'';
|
|
|
|
forceShare = [ "info" ];
|
|
|
|
meta = gambit-support.meta // {
|
|
description = "Optimizing Scheme to C compiler, bootstrap step";
|
|
};
|
|
}
|