diff options
author | Jared Baur <jaredbaur@fastmail.com> | 2023-09-29 17:46:58 -0700 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-09-30 00:34:54 -0300 |
commit | 31b5d595851df42eb67401385f1b254c7eaf12bb (patch) | |
tree | 4b86175629a3f96cd80c4285e0d0805d4bbe4b3f /pkgs/by-name/un | |
parent | 59c816e3dec384d3e3c3016e9d062a26f073302d (diff) | |
download | nixlib-31b5d595851df42eb67401385f1b254c7eaf12bb.tar nixlib-31b5d595851df42eb67401385f1b254c7eaf12bb.tar.gz nixlib-31b5d595851df42eb67401385f1b254c7eaf12bb.tar.bz2 nixlib-31b5d595851df42eb67401385f1b254c7eaf12bb.tar.lz nixlib-31b5d595851df42eb67401385f1b254c7eaf12bb.tar.xz nixlib-31b5d595851df42eb67401385f1b254c7eaf12bb.tar.zst nixlib-31b5d595851df42eb67401385f1b254c7eaf12bb.zip |
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.
Diffstat (limited to 'pkgs/by-name/un')
-rw-r--r-- | pkgs/by-name/un/unbook/package.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/by-name/un/unbook/package.nix b/pkgs/by-name/un/unbook/package.nix new file mode 100644 index 000000000000..b567cad5dc5f --- /dev/null +++ b/pkgs/by-name/un/unbook/package.nix @@ -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"; + }; +} |