mdlinkt/nix/package.nix
2025-06-12 16:36:12 +03:00

31 lines
600 B
Nix

{
buildGoModule,
lib,
...
}: let
fs = lib.fileset;
in
buildGoModule {
pname = "mdlinkt";
version = "0.1.0";
src = fs.toSource {
root = ../.;
fileset = fs.unions [
../go.mod
../go.sum
../main.go
];
};
vendorHash = null;
ldflags = ["-s" "-w"];
meta = {
description = "CLI tool for checking for dead links in a markdown file";
homepage = "https://github.com/notashelf/mdlinkt";
license = lib.licenses.gpl3Only;
mainProgram = "mdlinkt";
maintainers = [lib.maintainers.NotAShelf];
};
}