From 807fcdc46e20099b7b560d46ffdce52e83bed958 Mon Sep 17 00:00:00 2001 From: Haf Date: Mon, 14 Oct 2024 22:58:29 +0200 Subject: [PATCH] fix: several issues --- leptos/flake.nix | 5 +++-- leptos/pre-commit.nix | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/leptos/flake.nix b/leptos/flake.nix index 1a026c1..a806b6a 100644 --- a/leptos/flake.nix +++ b/leptos/flake.nix @@ -33,6 +33,7 @@ treefmt, pre-commit, nix-checks, + ... }: utils.lib.eachDefaultSystem ( system: @@ -68,7 +69,7 @@ clippy = checks.clippy ./.; }; - devShell.default = + devShells.default = with pkgs; mkShell { inherit (pre-commit-check) shellHook; @@ -85,7 +86,7 @@ cargo-generate # required for cargo-leptos dart-sass binaryen # required for release compilation - my-drvs.leptosfmt + myPkgs.leptosfmt stylance-cli # bundle sass ]; }; diff --git a/leptos/pre-commit.nix b/leptos/pre-commit.nix index 0e505cc..81bc202 100644 --- a/leptos/pre-commit.nix +++ b/leptos/pre-commit.nix @@ -18,7 +18,8 @@ treefmt = { enable = true; - packageOverrides.treefmt = treefmt; + packagae = treefmt; + pass_filenames = false; }; statix.enable = true;