Merge pull request #192295 from matthiasbeyer/add-mdbook-open-on-gh
mdbook-open-on-gh: init at 2.2.0
This commit is contained in:
commit
866be16461
2 changed files with 24 additions and 0 deletions
22
pkgs/tools/text/mdbook-open-on-gh/default.nix
Normal file
22
pkgs/tools/text/mdbook-open-on-gh/default.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{ lib, rustPlatform, fetchFromGitHub }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "mdbook-open-on-gh";
|
||||
version = "2.2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "badboy";
|
||||
repo = pname;
|
||||
rev = "2.2.0";
|
||||
sha256 = "sha256-x7ESuXoF5dYnJZpgDyYliVixCG4w/VX/Vhm3VqxsiEI=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-FVcCzL0jJ827HHS/9G597QjNFY3HLNYHCPWcepEulD0=";
|
||||
|
||||
meta = with lib; {
|
||||
description = "mdbook preprocessor to add a open-on-github link on every page";
|
||||
homepage = "https://github.com/badboy/mdbook-open-on-gh";
|
||||
license = [ licenses.mpl20 ];
|
||||
maintainers = with maintainers; [ matthiasbeyer ];
|
||||
};
|
||||
}
|
|
@ -8339,6 +8339,8 @@ with pkgs;
|
|||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
|
||||
mdbook-open-on-gh = callPackage ../tools/text/mdbook-open-on-gh { };
|
||||
|
||||
mdbook-mermaid = callPackage ../tools/text/mdbook-mermaid {
|
||||
inherit (darwin.apple_sdk.frameworks) CoreServices;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue