nix: bump inputs; add sql-format to formatter

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I2f5630aa3fd32023cd74eb10fc3ba2e66a6a6964
This commit is contained in:
raf 2026-02-18 16:09:47 +03:00
commit 170de90c7e
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
2 changed files with 17 additions and 10 deletions

18
flake.lock generated
View file

@ -2,11 +2,11 @@
"nodes": { "nodes": {
"crane": { "crane": {
"locked": { "locked": {
"lastModified": 1769737823, "lastModified": 1771121070,
"narHash": "sha256-DrBaNpZ+sJ4stXm+0nBX7zqZT9t9P22zbk6m5YhQxS4=", "narHash": "sha256-aIlv7FRXF9q70DNJPI237dEDAznSKaXmL5lfK/Id/bI=",
"owner": "ipetkov", "owner": "ipetkov",
"repo": "crane", "repo": "crane",
"rev": "b2f45c3830aa96b7456a4c4bc327d04d7a43e1ba", "rev": "a2812c19f1ed2e5ed5ce2ef7109798b575c180e1",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -17,11 +17,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1769740369, "lastModified": 1771177547,
"narHash": "sha256-xKPyJoMoXfXpDM5DFDZDsi9PHArf2k5BJjvReYXoFpM=", "narHash": "sha256-trTtk3WTOHz7hSw89xIIvahkgoFJYQ0G43IlqprFoMA=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "6308c3b21396534d8aaeac46179c14c439a89b8a", "rev": "ac055f38c798b0d87695240c7b761b82fc7e5bc2",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -45,11 +45,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1770433312, "lastModified": 1771384185,
"narHash": "sha256-IaiqGwmLBrR0z67t/oaS6GIFxv9V8mDY7dBTuYVTbKY=", "narHash": "sha256-KvmjUeA7uODwzbcQoN/B8DCZIbhT/Q/uErF1BBMcYnw=",
"owner": "oxalica", "owner": "oxalica",
"repo": "rust-overlay", "repo": "rust-overlay",
"rev": "9922ff9f99a6436756cbe6f5d11f9c3630e58cf0", "rev": "23dd7fa91602a68bd04847ac41bc10af1e6e2fd2",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -138,6 +138,7 @@
pkgs.prettier pkgs.prettier
pkgs.deno pkgs.deno
pkgs.taplo pkgs.taplo
pkgs.sql-formatter
]; ];
text = '' text = ''
@ -148,7 +149,13 @@
fd "$@" -t f -e toml -x taplo fmt '{}' fd "$@" -t f -e toml -x taplo fmt '{}'
# Format CSS with Prettier # 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 '{}'
''; '';
}); });
}; };