Skip to content

Commit d1cacdd

Browse files
committed
Merge branch 'master' into cabal2nix
2 parents 3e13b67 + aa9f40c commit d1cacdd

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

modules/hooks.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2052,6 +2052,7 @@ in
20522052
package = tools.cabal2nix-dir;
20532053
entry = "${hooks.cabal2nix.package}/bin/cabal2nix-dir --outputFileName=${hooks.cabal2nix.settings.output_filename}";
20542054
files = "\\.cabal$";
2055+
after = [ "hpack" ];
20552056
};
20562057
cargo-check =
20572058
{

modules/pre-commit.nix

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ let
99
mapAttrsToList
1010
mkOption
1111
types
12+
removeAttrs
1213
remove
1314
;
1415

@@ -43,8 +44,15 @@ let
4344
)
4445
enabledHooks
4546
);
47+
cleanedHooks = builtins.map (
48+
hook:
49+
removeAttrs hook [
50+
"before"
51+
"after"
52+
]
53+
) sortedHooks.result;
4654
in
47-
sortedHooks.result;
55+
cleanedHooks;
4856

4957
configFile =
5058
performAssertions (

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)