Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
42 lines
878 B
Nix
42 lines
878 B
Nix
{ lib
|
|
, stdenv
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, bzip2
|
|
, CoreServices
|
|
}:
|
|
|
|
let
|
|
pname = "mdbook-epub";
|
|
version = "0.4.37";
|
|
in rustPlatform.buildRustPackage {
|
|
inherit pname version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "michael-f-bryan";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-ddWClkeGabvqteVUtuwy4pWZGnarrKrIbuPEe62m6es=";
|
|
};
|
|
|
|
cargoHash = "sha256-cJS9HgbnLYXkZrAyGNEeu6q+znH+7cj8CUGIbTCbB9Y=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
bzip2
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
CoreServices
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "mdbook backend for generating an e-book in the EPUB format";
|
|
mainProgram = "mdbook-epub";
|
|
homepage = "https://michael-f-bryan.github.io/mdbook-epub";
|
|
license = licenses.mpl20;
|
|
maintainers = with maintainers; [ yuu matthiasbeyer ];
|
|
};
|
|
}
|