diff options
-rw-r--r-- | pkgs/tools/text/mdbook/default.nix | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/pkgs/tools/text/mdbook/default.nix b/pkgs/tools/text/mdbook/default.nix index 56d60eb7fb55..1a969e31c480 100644 --- a/pkgs/tools/text/mdbook/default.nix +++ b/pkgs/tools/text/mdbook/default.nix @@ -2,25 +2,19 @@ rustPlatform.buildRustPackage rec { pname = "mdbook"; - version = "0.4.21"; + version = "0.4.24"; src = fetchFromGitHub { owner = "rust-lang"; repo = "mdBook"; - rev = "v${version}"; - sha256 = "sha256-ggcyOsA4cyo5l87cZmOMI0w1gCzmWy9NRJiWxjBdB1E="; + rev = "refs/tags/v${version}"; + sha256 = "sha256-Y7ZbgRX0ZaYtLA20fD/L9eNMbARI1f7g6O4Yl/UDO5E="; }; - cargoSha256 = "sha256-KVoMC8ypikABVkIj5dCSHzYZ9CV8UMuAFxSEYLaQTSk="; + cargoSha256 = "sha256-74LyxlDx9tVjw0KGPml6EZbAIbDiW3tvM/CEj5BW7pI="; buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ]; - # Tests rely on unset 'RUST_LOG' value to emit INFO messages. - # 'RUST_LOG=' nixpkgs default enables warnings only and breaks tests. - # Can be removed when https://github.com/rust-lang/mdBook/pull/1777 - # is released. - logLevel = "info"; - passthru = { tests = { inherit nix; @@ -30,6 +24,7 @@ rustPlatform.buildRustPackage rec { meta = with lib; { description = "Create books from MarkDown"; homepage = "https://github.com/rust-lang/mdBook"; + changelog = "https://github.com/rust-lang/mdBook/blob/v${version}/CHANGELOG.md"; license = [ licenses.mpl20 ]; maintainers = [ maintainers.havvy ]; }; |