From 9caf79d62304200800f8f9f1d5f87a3cbab7dc53 Mon Sep 17 00:00:00 2001 From: alexion Date: Tue, 15 Sep 2026 23:46:28 -0400 Subject: [PATCH] refactor(nix): inline style-check app package --- src/dotfiles/apps.nix | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/dotfiles/apps.nix b/src/dotfiles/apps.nix index 4e0c4a4..7a58fe9 100644 --- a/src/dotfiles/apps.nix +++ b/src/dotfiles/apps.nix @@ -6,24 +6,22 @@ }: let pkgs = inputs.nixpkgs.legacyPackages.${system}; - - styleCheck = pkgs.writeShellApplication { - name = "style-check"; - runtimeInputs = [ - formatter - pkgs.statix - pkgs.deadnix - ]; - text = '' - treefmt --fail-on-change - statix check . - deadnix --fail --no-lambda-pattern-names --no-underscore . - ''; - }; in { style-check = { type = "app"; - program = lib.getExe styleCheck; + program = lib.getExe (pkgs.writeShellApplication { + name = "style-check"; + runtimeInputs = [ + formatter + pkgs.statix + pkgs.deadnix + ]; + text = '' + treefmt --fail-on-change + statix check . + deadnix --fail --no-lambda-pattern-names --no-underscore . + ''; + }); }; }