nixpkgs/pkgs/tools/text/mdbook/default.nix
Sergei Trofimovich 092d57c076 Merge remote-tracking branch 'origin/staging-next' into staging
Conflicts:
    pkgs/development/tools/language-servers/ansible-language-server/default.nix
2022-12-28 09:35:37 +00:00

33 lines
892 B
Nix

{ lib, stdenv, fetchFromGitHub, nix, rustPlatform, CoreServices }:
rustPlatform.buildRustPackage rec {
pname = "mdbook";
version = "0.4.25";
src = fetchFromGitHub {
owner = "rust-lang";
repo = "mdBook";
rev = "refs/tags/v${version}";
sha256 = "sha256-9zq3y7fNbGkprekzPDnJV4/IkAFUGEydkWAtr49mhdg=";
};
cargoSha256 = "sha256-6UiE/b6iJkuM/9g5yhB33WwTZ2VYlWFWQdfdHzA39CM=";
auditable = true; # TODO: remove when this is the default
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
passthru = {
tests = {
inherit nix;
};
};
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 = with maintainers; [ havvy Frostman ];
};
}