Now that `pkgs` is `__splicedPackages` on cross we can remove these
variables I set.
Assignments like `patchutils = pkgs.patchutils_0_3_3;` in
`all-packages.nix` cannot be removed because the `pkgs`
in `patchutils = pkgs.patchutils_0_3_3;` in `all-packages.nix` is coming from
this `pkgs:` b6e486730f/pkgs/top-level/all-packages.nix (L9)
instead of the `pkgs` in `with pkgs;`
Format all Nix files using the officially approved formatter,
making the CI check introduced in the previous commit succeed:
nix-build ci -A fmt.check
This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153)
of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166).
This commit will lead to merge conflicts for a number of PRs,
up to an estimated ~1100 (~33%) among the PRs with activity in the past 2
months, but that should be lower than what it would be without the previous
[partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537).
Merge conflicts caused by this commit can now automatically be resolved while rebasing using the
[auto-rebase script](8616af08d9/maintainers/scripts/auto-rebase).
If you run into any problems regarding any of this, please reach out to the
[formatting team](https://nixos.org/community/teams/formatting/) by
pinging @NixOS/nix-formatting.
Now that `pkgs` is `__splicedPackages` on cross we can remove these
variables I set.
Assignments like `patchutils = pkgs.patchutils_0_3_3;` in
`all-packages.nix` cannot be removed because the `pkgs`
in `patchutils = pkgs.patchutils_0_3_3;` in `all-packages.nix` is coming from
this `pkgs:` b6e486730f/pkgs/top-level/all-packages.nix (L9)
instead of the `pkgs` in `with pkgs;`
Without the change `nixpkgs` exposes unevaluatable attribute as:
$ nix build --no-link -f. perlInterpreters.perl536.perlOnBuild
error: attribute 'perl536' missing
at pkgs/development/interpreters/perl/interpreter.nix:207:37:
206| perlOnBuildForBuild = override pkgsBuildBuild.${perlAttr};
207| perlOnBuildForHost = override pkgsBuildHost.${perlAttr};
| ^
208| perlOnBuildForTarget = override pkgsBuildTarget.${perlAttr};
Did you mean one of perl538 or perl540?
The interpreter depends on presence of `perl536` attribute which wa
removed recently.
- Removes `perldevel` and `perldevelPackages`
perldevel (and perldevelPackages) are supposed to track the latest
development version of perl. This package is rarely updated, and usually
cause issues updating stable versions of perl since perl-cross releases
don't include patches for development versions
This perl-cross upgrade brings in a single new commit, by me, that
fixes the pkgsStatic.perl build.
Fixes: d1adf50277 ("perl: use pkgs.zlib instead of bundled zlib")
I don't understand how this worked prior to 1dbb306
("pkgsStatic.perl: Use `dontAddStaticConfigureFlags` instead of overriding"),
but what I do know is that it's very broken now, to the point that
perl-cross needs a patch.
I doubt the -Duseshrplib is actually necessary when native compiling,
but removing it would be a mass rebuild, so I've left it in place for
now.
This was originally in #105026, but then 5.30.1 happened with
this change included, so there were conflict and the patch
got dropped. Let's introduce it separately for only one version
that still needs it.