diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/text/mdbook/default.nix')
-rw-r--r-- | nixpkgs/pkgs/tools/text/mdbook/default.nix | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/nixpkgs/pkgs/tools/text/mdbook/default.nix b/nixpkgs/pkgs/tools/text/mdbook/default.nix index 56d60eb7fb55..4c53b36640be 100644 --- a/nixpkgs/pkgs/tools/text/mdbook/default.nix +++ b/nixpkgs/pkgs/tools/text/mdbook/default.nix @@ -2,25 +2,19 @@ rustPlatform.buildRustPackage rec { pname = "mdbook"; - version = "0.4.21"; + version = "0.4.30"; src = fetchFromGitHub { owner = "rust-lang"; repo = "mdBook"; - rev = "v${version}"; - sha256 = "sha256-ggcyOsA4cyo5l87cZmOMI0w1gCzmWy9NRJiWxjBdB1E="; + rev = "refs/tags/v${version}"; + sha256 = "sha256-AKGvU8yEgUcLRaf+fPet1kv84m95qrO25P4izP1w9lg="; }; - cargoSha256 = "sha256-KVoMC8ypikABVkIj5dCSHzYZ9CV8UMuAFxSEYLaQTSk="; + cargoHash = "sha256-Jg/+LAxgyGlVcqUdiHnZpwmTrtApWLXFhy0bNcNs0hM="; 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,7 +24,8 @@ 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 ]; + maintainers = with maintainers; [ havvy Frostman ]; }; } |