Skip to content

Commit

Permalink
pkgs/doctoc: init at 2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tomodachi94 committed Jun 10, 2024
1 parent d3eddb8 commit 2595501
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
29 changes: 29 additions & 0 deletions pkgs/all/doctoc.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{ lib
, buildNpmPackage
, fetchFromGitHub
}:

buildNpmPackage rec {
pname = "doctoc";
version = "2.2.0";

src = fetchFromGitHub {
owner = "thlorenz";
repo = "doctoc";
rev = "v${version}";
hash = "sha256-LYVxW8bZ4M87CmBvPyp4y0IeL9UFawwAKnUWHEWB5Gs=";
};

npmDepsHash = "sha256-TbAnFpiN/v6xjQQznL/B180f0W48HPRqW21cO9XZhYA=";

dontNpmBuild = true;

meta = with lib; {
description = "Generates table of contents for markdown files inside local git repository. Links are compatible with anchors generated by github or other sites";
homepage = "https://github.com/thlorenz/doctoc";
license = licenses.mit;
maintainers = with maintainers; [ ];
mainProgram = "doctoc";
platforms = platforms.all;
};
}
1 change: 1 addition & 0 deletions pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ in
awesome-lint = cp ./all/awesome-lint { };
crossover = cp ./all/crossover.nix { };
developercolorpicker = cp ./darwin/developercolorpicker.nix { };
doctoc = cp ./all/doctoc.nix { };
hugo-bearblog = cp ./all/hugo-bearblog.nix { };
ultisnips-vscode = cp ./all/ultisnips-vscode.nix { };
}

0 comments on commit 2595501

Please sign in to comment.