mirror of
https://github.com/NotAShelf/mdlinkt.git
synced 2025-10-03 07:23:34 +00:00
nix: clean up package
This commit is contained in:
parent
a18ed03954
commit
f056717a36
2 changed files with 28 additions and 24 deletions
|
@ -3,24 +3,29 @@
|
|||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) hasSuffix;
|
||||
|
||||
pname = "mdlinkt";
|
||||
version = "0.1.0";
|
||||
fs = lib.fileset;
|
||||
in
|
||||
buildGoModule {
|
||||
inherit pname version;
|
||||
pname = "mdlinkt";
|
||||
version = "0.1.0";
|
||||
|
||||
src = fs.toSource {
|
||||
root = ../.;
|
||||
fileset = fs.unions [
|
||||
../go.mod
|
||||
../go.sum
|
||||
../main.go
|
||||
];
|
||||
};
|
||||
|
||||
src = builtins.filterSource (path: type: type != "directory" || hasSuffix path != ".nix") ../.;
|
||||
vendorHash = null;
|
||||
ldflags = ["-s" "-w"];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
description = "A CLI tool for checking for dead links in a markdown file";
|
||||
description = "CLI tool for checking for dead links in a markdown file";
|
||||
homepage = "https://github.com/notashelf/mdlinkt";
|
||||
license = lib.licenses.gpl3Only;
|
||||
mainProgram = pname;
|
||||
maintainers = with lib.maintainers; [NotAShelf];
|
||||
mainProgram = "mdlinkt";
|
||||
maintainers = [lib.maintainers.NotAShelf];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue