062210bdff
A recent upgrade of cargo-vendor changed its output slightly, which broke all cargoSha256 hashes in nixpkgs. See https://github.com/NixOS/nixpkgs/issues/60668 for more information. Since then, a few hashes have been fixed in master by hand, but there were a lot still to do, so I did all of the ones left over with some scripts I wrote. The one hash I wasn’t able to update was habitat's, because it’s currently broken and the build doesn’t get far enough to produce a hash anyway.
30 lines
857 B
Nix
30 lines
857 B
Nix
{ stdenv, fetchFromGitHub, rustPlatform, CoreServices, darwin }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
name = "mdbook-${version}";
|
|
version = "0.1.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rust-lang-nursery";
|
|
repo = "mdBook";
|
|
rev = "v${version}";
|
|
sha256 = "1xmw4v19ff6mvimwk5l437wslzw5npy60zdb8r4319bjf32pw9pn";
|
|
};
|
|
|
|
cargoSha256 = "1xpsc4qff2lrq15mz1gvmw6n5vl88sfwpjbsnp5ja5k1im156lam";
|
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [
|
|
CoreServices
|
|
# This is needed to avoid an undefined symbol error for "_CFURLResourceIsReachable"
|
|
darwin.cf-private
|
|
];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Create books from MarkDown";
|
|
homepage = https://github.com/rust-lang-nursery/mdbook;
|
|
license = [ licenses.asl20 licenses.mit ];
|
|
maintainers = [ maintainers.havvy ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|