From 170de90c7e156d97436a5dc315200b90badc5fdc Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Wed, 18 Feb 2026 16:09:47 +0300 Subject: [PATCH] nix: bump inputs; add sql-format to formatter Signed-off-by: NotAShelf Change-Id: I2f5630aa3fd32023cd74eb10fc3ba2e66a6a6964 --- flake.lock | 18 +++++++++--------- flake.nix | 9 ++++++++- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/flake.lock b/flake.lock index c78fdb0..88d297f 100644 --- a/flake.lock +++ b/flake.lock @@ -2,11 +2,11 @@ "nodes": { "crane": { "locked": { - "lastModified": 1769737823, - "narHash": "sha256-DrBaNpZ+sJ4stXm+0nBX7zqZT9t9P22zbk6m5YhQxS4=", + "lastModified": 1771121070, + "narHash": "sha256-aIlv7FRXF9q70DNJPI237dEDAznSKaXmL5lfK/Id/bI=", "owner": "ipetkov", "repo": "crane", - "rev": "b2f45c3830aa96b7456a4c4bc327d04d7a43e1ba", + "rev": "a2812c19f1ed2e5ed5ce2ef7109798b575c180e1", "type": "github" }, "original": { @@ -17,11 +17,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1769740369, - "narHash": "sha256-xKPyJoMoXfXpDM5DFDZDsi9PHArf2k5BJjvReYXoFpM=", + "lastModified": 1771177547, + "narHash": "sha256-trTtk3WTOHz7hSw89xIIvahkgoFJYQ0G43IlqprFoMA=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "6308c3b21396534d8aaeac46179c14c439a89b8a", + "rev": "ac055f38c798b0d87695240c7b761b82fc7e5bc2", "type": "github" }, "original": { @@ -45,11 +45,11 @@ ] }, "locked": { - "lastModified": 1770433312, - "narHash": "sha256-IaiqGwmLBrR0z67t/oaS6GIFxv9V8mDY7dBTuYVTbKY=", + "lastModified": 1771384185, + "narHash": "sha256-KvmjUeA7uODwzbcQoN/B8DCZIbhT/Q/uErF1BBMcYnw=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "9922ff9f99a6436756cbe6f5d11f9c3630e58cf0", + "rev": "23dd7fa91602a68bd04847ac41bc10af1e6e2fd2", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 80e6fd6..ee944e8 100644 --- a/flake.nix +++ b/flake.nix @@ -138,6 +138,7 @@ pkgs.prettier pkgs.deno pkgs.taplo + pkgs.sql-formatter ]; text = '' @@ -148,7 +149,13 @@ fd "$@" -t f -e toml -x taplo fmt '{}' # Format CSS with Prettier - fd "$@" -t f -e css -x prettier --write '{}' + fd "$@" -t f -e css -x prettier --write '{}' + + # Format SQL with sql-format + fd "$@" -t f -e css -x sql-formatter '{}' + + # Format Markdown with Deno + fd "$@" -t f -e md -x deno fmt -q '{}' ''; }); };