Merge pull request #324432 from jalil-salame/update-mdbook

mdbook: 0.4.37 -> 0.4.40
This commit is contained in:
Masum Reza 2024-07-16 23:49:17 +05:30 committed by GitHub
commit 6ecabf9e3f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 24 additions and 13 deletions

View File

@ -1,17 +1,28 @@
{ lib, stdenv, fetchFromGitHub, nix, rustPlatform, CoreServices, installShellFiles }:
rustPlatform.buildRustPackage rec {
{
lib,
stdenv,
fetchFromGitHub,
nix,
rustPlatform,
darwin,
CoreServices ? darwin.apple_sdk.frameworks.CoreServices,
installShellFiles,
}:
let
version = "0.4.40";
in
rustPlatform.buildRustPackage {
inherit version;
pname = "mdbook";
version = "0.4.37";
src = fetchFromGitHub {
owner = "rust-lang";
repo = "mdBook";
rev = "refs/tags/v${version}";
sha256 = "sha256-A8ZSqIG+rGKwggs9ogvbMIi9gClFKe8gS6D5W426ebc=";
sha256 = "sha256-GGQK2Mf3EK1rwBMzQkAzWAaK6Fh0Qqqf8dtDjZPxOMA=";
};
cargoHash = "sha256-8GQM4pHiFbyoRkOx3SXuIV118ndzL+O+eA+Gd2jbsdI=";
cargoHash = "sha256-jriSQHn+Y+EWtwDJeMTAuCCHR7fEtWsErAxbG9a4pts=";
nativeBuildInputs = [ installShellFiles ];
@ -30,12 +41,16 @@ rustPlatform.buildRustPackage rec {
};
};
meta = with lib; {
meta = {
description = "Create books from MarkDown";
mainProgram = "mdbook";
homepage = "https://github.com/rust-lang/mdBook";
changelog = "https://github.com/rust-lang/mdBook/blob/v${version}/CHANGELOG.md";
license = [ licenses.mpl20 ];
maintainers = with maintainers; [ havvy Frostman matthiasbeyer ];
license = [ lib.licenses.mpl20 ];
maintainers = with lib.maintainers; [
havvy
Frostman
matthiasbeyer
];
};
}

View File

@ -9706,10 +9706,6 @@ with pkgs;
md2gemini = with python3.pkgs; toPythonApplication md2gemini;
mdbook = callPackage ../tools/text/mdbook {
inherit (darwin.apple_sdk.frameworks) CoreServices;
};
mdbook-emojicodes = callPackage ../tools/text/mdbook-emojicodes { };
mdbook-epub = callPackage ../tools/text/mdbook-epub {