From f6297461f589d792a8a2dbb00612bb2d62d77a24 Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Mon, 13 Jan 2025 14:56:21 -0500 Subject: [PATCH] Add markdown devshell --- devshells/markdown.nix | 25 +++++++++++++++++++++++++ flake.nix | 1 + 2 files changed, 26 insertions(+) create mode 100644 devshells/markdown.nix diff --git a/devshells/markdown.nix b/devshells/markdown.nix new file mode 100644 index 0000000..57706de --- /dev/null +++ b/devshells/markdown.nix @@ -0,0 +1,25 @@ +{ + withSystem, + inputs, + ... +}: { + perSystem = { + config, + pkgs, + lib, + inputs', + ... + }: { + devShells.markdown = pkgs.mkShell { + buildInputs = with pkgs; [ + (python3.withPackages (ps: + with ps; [ + mdformat + mdformat-gfm + mdformat-tables + mdformat-footnote + ])) + ]; + }; + }; +} diff --git a/flake.nix b/flake.nix index 6498f74..49a0fec 100644 --- a/flake.nix +++ b/flake.nix @@ -36,6 +36,7 @@ ./devshells/rust.nix ./devshells/idris2.nix ./devshells/raku.nix + ./devshells/markdown.nix ]; config = { systems = [