From 605b4eec66857d645bfc9e54cf6c2f211571155d Mon Sep 17 00:00:00 2001 From: "Gustavo \"Guz\" L de Mello" Date: Mon, 26 May 2025 10:25:34 -0300 Subject: [PATCH] chore: add mdfmt dependency --- flake.lock | 17 +++++++++++++++++ flake.nix | 19 ++++++++++++++----- 2 files changed, 31 insertions(+), 5 deletions(-) diff --git a/flake.lock b/flake.lock index 741a318..5bb1697 100644 --- a/flake.lock +++ b/flake.lock @@ -101,6 +101,22 @@ "type": "github" } }, + "mdfmt": { + "flake": false, + "locked": { + "lastModified": 1543379285, + "narHash": "sha256-5LQ7S/CZXCa/zrUcIbDfD2Ji8Kjc3/Cengw8UmVOU4g=", + "owner": "moorereason", + "repo": "mdfmt", + "rev": "29e3d55cbe5af4cfc31b172aed1d69b9a5a22c5b", + "type": "github" + }, + "original": { + "owner": "moorereason", + "repo": "mdfmt", + "type": "github" + } + }, "nixpkgs": { "locked": { "lastModified": 1740828860, @@ -133,6 +149,7 @@ "inputs": { "blink-cmp": "blink-cmp", "go-grip": "go-grip", + "mdfmt": "mdfmt", "nixpkgs": "nixpkgs" } }, diff --git a/flake.nix b/flake.nix index efa3cd1..0e071a9 100644 --- a/flake.nix +++ b/flake.nix @@ -3,14 +3,17 @@ inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + blink-cmp = { + url = "github:Saghen/blink.cmp"; + inputs.nixpkgs.follows = "nixpkgs"; + }; go-grip = { url = "github:guz013/go-grip"; inputs.nixpkgs.follows = "nixpkgs"; }; - - blink-cmp = { - url = "github:Saghen/blink.cmp"; - inputs.nixpkgs.follows = "nixpkgs"; + mdfmt = { + url = "github:moorereason/mdfmt"; + flake = false; }; }; outputs = { @@ -40,8 +43,14 @@ }: { neovim = import ./package.nix { inherit pkgs lib; - go-grip = inputs.go-grip.packages.${pkgs.system}.default; blink-cmp = inputs.blink-cmp.packages.${pkgs.system}.default; + go-grip = inputs.go-grip.packages.${pkgs.system}.default; + mdfmt = self.packages.${pkgs.system}.mdfmt; + }; + mdfmt = pkgs.buildGoModule { + name = "mdfmt"; + src = inputs.mdfmt; + vendorHash = "sha256-JtYvDgjUoEc1Mp7Eq8lbu9jWI+RR9yBo4ujGY+J70J4="; }; default = self.packages."${pkgs.system}".neovim; });