Skip to content

Commit 8a8d2b8

Browse files
committed
make sure that clang-tools is in the same version across all platforms
We noticed when upgrading nixpkgs in nix, that clang-format would produce different results on macOS vs Linux. This is not great behaviour especially in CI, because you cannot win. This is because llvmPackage might be in a different version. To solve this, we now always depend on the latest version.
1 parent d8c02f0 commit 8a8d2b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nix/tools.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
, callPackage
1212
, cargo
1313
, checkmake
14-
, clang-tools
14+
, llvmPackages_latest
1515
, clippy
1616
, cljfmt
1717
, cmake-format
@@ -96,6 +96,7 @@ let
9696
};
9797
in
9898
{
99+
clang-tools = llvmPackages_latest.clang-tools;
99100
inherit
100101
actionlint
101102
alejandra
@@ -106,7 +107,6 @@ in
106107
cabal-fmt
107108
cabal-gild
108109
cargo
109-
clang-tools
110110
clippy
111111
cljfmt
112112
cmake-format

0 commit comments

Comments
 (0)