diff --git a/README.md b/README.md index 731999d..cb9c9ff 100644 --- a/README.md +++ b/README.md @@ -310,6 +310,7 @@ functions. * [oxfmt](programs/oxfmt.nix) * [oxipng](programs/oxipng.nix) * [packer](programs/packer.nix) +* [panache-format](programs/panache-format.nix) * [perltidy](programs/perltidy.nix) * [php-cs-fixer](programs/php-cs-fixer.nix) * [pinact](programs/pinact.nix) diff --git a/examples/formatter-panache-format.toml b/examples/formatter-panache-format.toml new file mode 100644 index 0000000..14c0bc5 --- /dev/null +++ b/examples/formatter-panache-format.toml @@ -0,0 +1,6 @@ +# Example generated by ../examples.sh +[formatter.panache-format] +command = "panache" +excludes = [] +includes = ["*.md", "*.markdown", "*.qmd", "*.Rmd"] +options = ["format"] diff --git a/flake.lock b/flake.lock index 64515b3..b198399 100644 --- a/flake.lock +++ b/flake.lock @@ -2,11 +2,11 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1770107345, - "narHash": "sha256-tbS0Ebx2PiA1FRW8mt8oejR0qMXmziJmPaU1d4kYY9g=", + "lastModified": 1785301185, + "narHash": "sha256-eoS3KQTO0aPWXZvIaRbRAzSSHW3l5wdMFXtT1ISfoKA=", "owner": "nixos", "repo": "nixpkgs", - "rev": "4533d9293756b63904b7238acb84ac8fe4c8c2c4", + "rev": "9bc02893134c733dd85de46ee4fb2fac696b5529", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 3554c49..3db6b2e 100644 --- a/flake.nix +++ b/flake.nix @@ -10,7 +10,6 @@ eachSystem = lib.genAttrs [ "aarch64-darwin" "aarch64-linux" - "x86_64-darwin" "x86_64-linux" ]; in diff --git a/programs/panache-format.nix b/programs/panache-format.nix new file mode 100644 index 0000000..fe462e9 --- /dev/null +++ b/programs/panache-format.nix @@ -0,0 +1,21 @@ +{ + mkFormatterModule, + ... +}: +{ + meta.maintainers = [ "jolars" ]; + + imports = [ + (mkFormatterModule { + name = "panache-format"; + package = "panache"; + args = [ "format" ]; + includes = [ + "*.md" + "*.markdown" + "*.qmd" + "*.Rmd" + ]; + }) + ]; +}