3
0
Fork 0
forked from mirrors/nixpkgs

unbook: init at 0.7.3

Unbook is a command-line program for converting a DRM-free .epub, .mobi,
.azw, .azw3, .lit, or .chm ebook to a self-contained HTML file.
This commit is contained in:
Jared Baur 2023-09-29 17:46:58 -07:00 committed by Anderson Torres
parent 59c816e3de
commit 31b5d59585

View file

@ -0,0 +1,34 @@
{ lib
, rustPlatform
, fetchFromGitHub
, makeWrapper
, calibre
}:
rustPlatform.buildRustPackage rec {
pname = "unbook";
version = "0.7.3";
src = fetchFromGitHub {
owner = "ludios";
repo = "unbook";
rev = version;
hash = "sha256-KYnSIT/zIrbDFRWIaQRto0sPPmpJC8V7f00j4t/AsGQ=";
};
cargoHash = "sha256-AjyeTFgjl3XLplo8w9jne5FyKd2EciwbAKKiaDshpcA=";
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
wrapProgram $out/bin/unbook --prefix PATH : ${lib.makeBinPath [ calibre ]}
'';
meta = with lib; {
description = "An ebook to self-contained-HTML converter";
homepage = "https://unbook.ludios.org";
license = licenses.cc0;
maintainers = with maintainers; [ jmbaur ];
mainProgram = "unbook";
};
}