From 233fa91f75fa6c2e891a155fbd8b3bf090581b98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 15 Jul 2022 23:44:07 +0200 Subject: [PATCH 1/2] mdbook: 0.4.18 -> 0.4.20 --- pkgs/tools/text/mdbook/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/text/mdbook/default.nix b/pkgs/tools/text/mdbook/default.nix index 57f373a9ce1a..7f3394a23411 100644 --- a/pkgs/tools/text/mdbook/default.nix +++ b/pkgs/tools/text/mdbook/default.nix @@ -2,16 +2,16 @@ rustPlatform.buildRustPackage rec { pname = "mdbook"; - version = "0.4.18"; + version = "0.4.20"; src = fetchFromGitHub { owner = "rust-lang"; repo = "mdBook"; rev = "v${version}"; - sha256 = "sha256-lsryNrgjOGdugOhtkNbnYEreF0X1ywLVaFmKUXDf884="; + sha256 = "sha256-Cfi9qjY7+G7nGgxt4xNLIkGlpgr6TnvGlFrz3gMKCX8="; }; - cargoSha256 = "sha256-l95nbp9PEgO97D1M/R9IB3Xfog6+DkZwyVY2DEl5mG4="; + cargoSha256 = "sha256-Ihs5aaruzj/8gbUhg4MmrYmpS9Hi/DohuEV2WtrxUXE="; buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ]; From 5dba1015171c072893b31d99bf0ba25c4bbb1d7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 16 Jul 2022 02:45:46 +0200 Subject: [PATCH 2/2] mdbook: add nix to passthru.tests --- pkgs/tools/text/mdbook/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/text/mdbook/default.nix b/pkgs/tools/text/mdbook/default.nix index 7f3394a23411..c7e55426f47f 100644 --- a/pkgs/tools/text/mdbook/default.nix +++ b/pkgs/tools/text/mdbook/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices }: +{ lib, stdenv, fetchFromGitHub, nix, rustPlatform, CoreServices }: rustPlatform.buildRustPackage rec { pname = "mdbook"; @@ -21,6 +21,12 @@ rustPlatform.buildRustPackage rec { # is released. logLevel = "info"; + passthru = { + tests = { + inherit nix; + }; + }; + meta = with lib; { description = "Create books from MarkDown"; homepage = "https://github.com/rust-lang/mdBook";