nixpkgs/pkgs/tools/text/mdbook/default.nix

26 lines
720 B
Nix
Raw Normal View History

2019-04-16 23:36:26 -07:00
{ stdenv, fetchFromGitHub, rustPlatform, CoreServices, darwin }:
rustPlatform.buildRustPackage rec {
2019-08-31 04:41:23 -07:00
pname = "mdbook";
2020-08-01 23:20:58 -07:00
version = "0.4.1";
src = fetchFromGitHub {
owner = "rust-lang-nursery";
repo = "mdBook";
2018-07-14 11:33:02 -07:00
rev = "v${version}";
2020-08-01 23:20:58 -07:00
sha256 = "0rfcvcz3cawyzhdxqyasd9dwrb8c2j6annpl9jx2n6y3ysl345ry";
};
2020-08-01 23:20:58 -07:00
cargoSha256 = "02vfdr1zlagjya5i9wf6ag9k01cf20jlm4yqvgrpjg9zrwv4xr4s";
2019-06-20 09:35:02 -07:00
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreServices ];
meta = with stdenv.lib; {
description = "Create books from MarkDown";
2020-03-20 18:15:54 -07:00
homepage = "https://github.com/rust-lang-nursery/mdbook";
license = [ licenses.mpl20 ];
maintainers = [ maintainers.havvy ];
platforms = platforms.all;
};
}