Skip to content

Commit

Permalink
fix: add/fix all the missing hooks, for real this time
Browse files Browse the repository at this point in the history
  • Loading branch information
K900 committed Jan 14, 2024
1 parent 05a6b4c commit 1e70292
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modules/hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1013,8 +1013,8 @@ in
mkOption {
type = types.path;
description = lib.mdDoc "`rome` binary path. E.g. if you want to use the `rome` in `node_modules`, use `./node_modules/.bin/rome`.";
default = "${tools.rome}/bin/rome";
defaultText = "\${tools.rome}/bin/rome";
default = "${tools.biome}/bin/biome";
defaultText = "\${tools.biome}/bin/biome";
};

write =
Expand Down
14 changes: 13 additions & 1 deletion nix/tools.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@
, actionlint
, alejandra
, ansible-lint
, biome
, cabal-fmt
, cabal2nix
, callPackage
, cargo
, checkmake
, clang-tools
, clippy
, cljfmt
, cmake-format
, commitizen
, conform
, convco
Expand All @@ -20,6 +23,7 @@
, dune_3
, eclint
, editorconfig-checker
, elixir
, elmPackages
, fprettify
, git
Expand Down Expand Up @@ -61,11 +65,13 @@
, stylish-haskell
, stylua
, tagref
, taplo
, texlive
, tflint
, topiary ? null ## Added in nixpkgs on Dec 2, 2022
, typos
, typst-fmt
, zprint
, yamllint
, writeScript
, writeText
Expand All @@ -87,11 +93,14 @@ in
alejandra
ansible-lint
beautysh
biome
cabal2nix
cabal-fmt
cargo
clang-tools
clippy
cljfmt
cmake-format
conform
convco
crystal
Expand All @@ -100,6 +109,7 @@ in
dhall
eclint
editorconfig-checker
elixir
fprettify
git-annex
go
Expand Down Expand Up @@ -129,18 +139,20 @@ in
stylish-haskell
stylua
tagref
taplo
topiary
typos
typst-fmt
yamllint
zprint
;
inherit (elmPackages) elm-format elm-review elm-test;
# TODO: these two should be statically compiled
inherit (haskellPackages) fourmolu;
inherit (luaPackages) luacheck;
inherit (nodePackages) eslint markdownlint-cli prettier pyright cspell;
inherit (ocamlPackages) ocp-indent;
inherit (python3Packages) black flake8 flynt isort mkdocs-linkcheck pylint;
inherit (python3Packages) autoflake black flake8 flynt isort mkdocs-linkcheck mypy pylint pyupgrade;
inherit (php82Packages) php-cs-fixer phpcbf phpcs psalm;
# FIXME: workaround build failure
phpstan = php82Packages.phpstan.overrideAttrs (old: {
Expand Down

0 comments on commit 1e70292

Please sign in to comment.