treewide: Fix indentation in strings#350296
Conversation
23dd0a3 to
9e02207
Compare
SuperSandro2000
left a comment
There was a problem hiding this comment.
Maybe we should split out all the meta changes to make this easier to merge faster?
4039087 to
19b40bb
Compare
|
I took out some big packages, but this still has 36000 rebuilds. I've taken out some obvious candidates but I'm a bit at a loss now, so I'd appreciate any hints as to what may be causing these rebuilds. |
19b40bb to
43cca80
Compare
43193e6 to
987bf9b
Compare
|
Result of 9 packages failed to build:
47 packages built:
AFAICT, ponyc is already broken on master (CC @kamilchm @patternspandemic @redvers). The emscriptenPackages failures look like an unrelated dependency failure to me (CC @jtojnar @qknight). The datadog-agent failure is mine and will be fixed with the next push (I fell for the exact same syntax gotcha again which I was trying to fix …) |
987bf9b to
9b80772
Compare
jtojnar
left a comment
There was a problem hiding this comment.
Skimmed through the build changes, looks good, only minor style comments.
pkgs/games/mindustry/default.nix
Outdated
There was a problem hiding this comment.
This will not have correct indentation either. Maybe something like:
| --set ALSA_PLUGIN_DIR ${alsa-plugins}/lib/alsa-lib/ ${lib.optionalString enableWayland '' | |
| --set SDL_VIDEODRIVER wayland \ | |
| --set ALSA_PLUGIN_DIR ${alsa-plugins}/lib/alsa-lib/${lib.optionalString enableWayland '' | |
| \ | |
| --set SDL_VIDEODRIVER wayland \ |
Though it probably does not matter.
The indentation stripping semantics of strings are fairly bad and have a few gotchas where the resulting string has not the intended indentation. This commit fixes most if not all such instances in Nixpkgs. I tried to strive a balance between keeping the diff small and reformatting/refactoring the code to look better. In general, reformatting should be left to Nixfmt. Note that this causes a lot of rebuilds by design. All changes need to be thoroughly vetted and reviewed for correctness. There is no automatic way to prove correctness. List of files to fix generated by running https://gerrit.lix.systems/c/lix/+/2092 on Nixpkgs and looking at the warnings.
9b80772 to
6892791
Compare
|
@ofborg eval |
Follow-up on #350296 with the packages that cause big rebuilds and need to go through staging.
The indentation stripping semantics of strings are fairly bad and have a few gotchas where the resulting string has not the intended indentation. This commit fixes most if not all such instances in Nixpkgs.
I tried to strive a balance between keeping the diff small and reformatting/refactoring the code to look better. In general, reformatting should be left to Nixfmt.
Note that this causes a lot of rebuilds by design. All changes need to be thoroughly vetted and reviewed for correctness. There is no automatic way to prove correctness.
List of files to fix generated by running
https://gerrit.lix.systems/c/lix/+/2092 on Nixpkgs and looking at the warnings.
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)