From 5dba1015171c072893b31d99bf0ba25c4bbb1d7e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= <sandro.jaeckel@gmail.com>
Date: Sat, 16 Jul 2022 02:45:46 +0200
Subject: [PATCH] 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";