Skip to content

Commit

Permalink
Merge branch 'master' into cabal2nix
Browse files Browse the repository at this point in the history
  • Loading branch information
rsrohitsingh682 committed Dec 16, 2024
2 parents 3e13b67 + aa9f40c commit d1cacdd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions modules/hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2052,6 +2052,7 @@ in
package = tools.cabal2nix-dir;
entry = "${hooks.cabal2nix.package}/bin/cabal2nix-dir --outputFileName=${hooks.cabal2nix.settings.output_filename}";
files = "\\.cabal$";
after = [ "hpack" ];
};
cargo-check =
{
Expand Down
10 changes: 9 additions & 1 deletion modules/pre-commit.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ let
mapAttrsToList
mkOption
types
removeAttrs
remove
;

Expand Down Expand Up @@ -43,8 +44,15 @@ let
)
enabledHooks
);
cleanedHooks = builtins.map (
hook:
removeAttrs hook [
"before"
"after"
]
) sortedHooks.result;
in
sortedHooks.result;
cleanedHooks;

configFile =
performAssertions (
Expand Down
4 changes: 2 additions & 2 deletions nix/tools.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
, callPackage
, cargo
, checkmake
, clang-tools
, llvmPackages_latest
, clippy
, cljfmt
, cmake-format
Expand Down Expand Up @@ -96,6 +96,7 @@ let
};
in
{
clang-tools = llvmPackages_latest.clang-tools;
inherit
actionlint
alejandra
Expand All @@ -106,7 +107,6 @@ in
cabal-fmt
cabal-gild
cargo
clang-tools
clippy
cljfmt
cmake-format
Expand Down

0 comments on commit d1cacdd

Please sign in to comment.