Unverified Commit 1b8c0659 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

unbook: update, nixfmt, add gitUpdater (#341741)

parents 01f7854c 97e08eb0
Loading
Loading
Loading
Loading
+12 −8
Original line number Diff line number Diff line
{ lib
, rustPlatform
, fetchFromGitHub
, makeWrapper
, calibre
{
  lib,
  rustPlatform,
  fetchFromGitHub,
  makeWrapper,
  calibre,
  gitUpdater,
}:

rustPlatform.buildRustPackage rec {
  pname = "unbook";
  version = "0.8.2";
  version = "0.9.1";

  src = fetchFromGitHub {
    owner = "ludios";
    repo = "unbook";
    rev = version;
    hash = "sha256-THCPJ4zOKSXKZDa5DuqpBfBKZ96TdFEuDMVw/HmO7Eo=";
    hash = "sha256-whWWh/jQ4RkGA3T1VCmt6zhpQQCzh2jASYg69IlfEeo=";
  };

  cargoHash = "sha256-EbSayNz9cPmMDQOaOiyQAYmtlnb+4jzbffm1On0BBxI=";
  cargoHash = "sha256-whmp4ST89TZuxQe9fnkW98A9t3rwpTdQCej49ZsDanE=";

  nativeBuildInputs = [ makeWrapper ];

@@ -24,6 +26,8 @@ rustPlatform.buildRustPackage rec {
    wrapProgram $out/bin/unbook --prefix PATH : ${lib.makeBinPath [ calibre ]}
  '';

  passthru.updateScript = gitUpdater { };

  meta = with lib; {
    description = "Ebook to self-contained-HTML converter";
    homepage = "https://unbook.ludios.org";