From 0015531ddc87ee3d79dfa4a51c3ad0c7f29532ba Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 21 Sep 2022 21:40:16 +0200 Subject: [PATCH] mdbook-man: init at unstable-2021-08-26 Signed-off-by: Matthias Beyer --- pkgs/tools/text/mdbook-man/default.nix | 23 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 pkgs/tools/text/mdbook-man/default.nix diff --git a/pkgs/tools/text/mdbook-man/default.nix b/pkgs/tools/text/mdbook-man/default.nix new file mode 100644 index 000000000000..7783be1ccac2 --- /dev/null +++ b/pkgs/tools/text/mdbook-man/default.nix @@ -0,0 +1,23 @@ +{ lib, rustPlatform, fetchFromGitHub }: + +rustPlatform.buildRustPackage rec { + pname = "mdbook-man"; + version = "unstable-2021-08-26"; + + src = fetchFromGitHub { + owner = "vv9k"; + repo = pname; + rev = "419c91db0fcfcce65a6006ed9ec8415a8b705186"; + sha256 = "sha256-NOPyDPQms/YJzjkXjVAFR60gLK4zqOuFSdRvFkZRRxQ="; + }; + + cargoSha256 = "sha256-NyeB2vI9Za5T1SKrjqwTi8LXX7A+M+2r/n1u2qtnK5g="; + + meta = with lib; { + description = "Generate manual pages from mdBooks"; + homepage = "https://github.com/vv9k/mdbook-man"; + license = licenses.mit; + maintainers = with maintainers; [ matthiasbeyer ]; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ff3535c7c78d..cac0693c0a2e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8343,6 +8343,8 @@ with pkgs; mdbook-open-on-gh = callPackage ../tools/text/mdbook-open-on-gh { }; + mdbook-man = callPackage ../tools/text/mdbook-man { }; + mdbook-mermaid = callPackage ../tools/text/mdbook-mermaid { inherit (darwin.apple_sdk.frameworks) CoreServices; };