feat(build): Add mdBook 0.3.1 to build environment

Upstream nixpkgs currently only has an older versin of mdBook. Until
that changes, we keep a different version in here.
This commit is contained in:
Vincent Ambo 2019-08-04 22:43:22 +01:00 committed by Vincent Ambo
parent 7c41a7a872
commit 85e8d760fc

View file

@ -55,6 +55,24 @@ rec {
mkdir $out
cp ${./static}/* $out
'';
# nixpkgs currently has an old version of mdBook. A new version is
# built here, but eventually the update will be upstreamed
# (nixpkgs#65890)
mdbook = rustPlatform.buildRustPackage rec {
name = "mdbook-${version}";
version = "0.3.1";
doCheck = false;
src = fetchFromGitHub {
owner = "rust-lang-nursery";
repo = "mdBook";
rev = "v${version}";
sha256 = "0py69267jbs6b7zw191hcs011cm1v58jz8mglqx3ajkffdfl3ghw";
};
cargoSha256 = "0qwhc42a86jpvjcaysmfcw8kmwa150lmz01flmlg74g6qnimff5m";
};
# Wrapper script running the Nixery server with the above two data
# dependencies configured.