chore: add mdfmt dependency

This commit is contained in:
Guz
2025-05-26 10:25:34 -03:00
parent dc87109b39
commit 605b4eec66
2 changed files with 31 additions and 5 deletions

17
flake.lock generated
View File

@@ -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"
}
},

View File

@@ -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;
});