mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 15:44:20 +00:00
4f0dadbf38
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-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
96 lines
2.6 KiB
Nix
96 lines
2.6 KiB
Nix
{
|
|
lib,
|
|
beam,
|
|
beam_nodocs,
|
|
callPackage,
|
|
wxGTK32,
|
|
buildPackages,
|
|
stdenv,
|
|
ex_docSupport ? true,
|
|
wxSupport ? true,
|
|
systemd,
|
|
systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemd,
|
|
}:
|
|
|
|
let
|
|
self = beam;
|
|
|
|
in
|
|
|
|
{
|
|
beamLib = callPackage ../development/beam-modules/lib.nix { };
|
|
|
|
latestVersion = "erlang_25";
|
|
|
|
# Each
|
|
interpreters = {
|
|
|
|
erlang = self.interpreters.${self.latestVersion};
|
|
|
|
# Standard Erlang versions, using the generic builder.
|
|
|
|
erlang_27 = self.beamLib.callErlang ../development/interpreters/erlang/27.nix {
|
|
wxGTK = wxGTK32;
|
|
parallelBuild = true;
|
|
autoconf = buildPackages.autoconf269;
|
|
inherit (beam_nodocs.packages.erlang_27) ex_doc;
|
|
inherit ex_docSupport wxSupport systemdSupport;
|
|
};
|
|
|
|
erlang_26 = self.beamLib.callErlang ../development/interpreters/erlang/26.nix {
|
|
wxGTK = wxGTK32;
|
|
parallelBuild = true;
|
|
autoconf = buildPackages.autoconf269;
|
|
inherit wxSupport systemdSupport;
|
|
};
|
|
|
|
erlang_25 = self.beamLib.callErlang ../development/interpreters/erlang/25.nix {
|
|
wxGTK = wxGTK32;
|
|
parallelBuild = true;
|
|
autoconf = buildPackages.autoconf269;
|
|
inherit wxSupport systemdSupport;
|
|
};
|
|
|
|
erlang_24 = self.beamLib.callErlang ../development/interpreters/erlang/24.nix {
|
|
wxGTK = wxGTK32;
|
|
# Can be enabled since the bug has been fixed in https://github.com/erlang/otp/pull/2508
|
|
parallelBuild = true;
|
|
autoconf = buildPackages.autoconf269;
|
|
inherit wxSupport systemdSupport;
|
|
};
|
|
|
|
# Other Beam languages. These are built with `beam.interpreters.erlang`. To
|
|
# access for example elixir built with different version of Erlang, use
|
|
# `beam.packages.erlang_24.elixir`.
|
|
inherit (self.packages.erlang)
|
|
elixir
|
|
elixir_1_17
|
|
elixir_1_16
|
|
elixir_1_15
|
|
elixir_1_14
|
|
elixir_1_13
|
|
elixir_1_12
|
|
elixir_1_11
|
|
elixir_1_10
|
|
elixir-ls
|
|
lfe
|
|
lfe_2_1
|
|
;
|
|
};
|
|
|
|
# Helper function to generate package set with a specific Erlang version.
|
|
packagesWith = erlang: callPackage ../development/beam-modules { inherit erlang; };
|
|
|
|
# Each field in this tuple represents all Beam packages in nixpkgs built with
|
|
# appropriate Erlang/OTP version.
|
|
packages = {
|
|
erlang = self.packages.${self.latestVersion};
|
|
erlang_27 = self.packagesWith self.interpreters.erlang_27;
|
|
erlang_26 = self.packagesWith self.interpreters.erlang_26;
|
|
erlang_25 = self.packagesWith self.interpreters.erlang_25;
|
|
erlang_24 = self.packagesWith self.interpreters.erlang_24;
|
|
};
|
|
|
|
__attrsFailEvaluation = true;
|
|
}
|