Unverified Commit b5ff921a authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

calibre: add update script; 8.2.100 -> 8.4.0 (#398957)

parents b367cc47 5338f032
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
  libuchardet,
  libusb1,
  libwebp,
  nix-update-script,
  optipng,
  piper-tts,
  pkg-config,
@@ -35,11 +36,11 @@

stdenv.mkDerivation (finalAttrs: {
  pname = "calibre";
  version = "8.2.100";
  version = "8.4.0";

  src = fetchurl {
    url = "https://download.calibre-ebook.com/${finalAttrs.version}/calibre-${finalAttrs.version}.tar.xz";
    hash = "sha256-lUHnaorIUwoac1YgYimxF8KTJOPSUiJg5BKC+hFy0lc=";
    hash = "sha256-5uexcItbBgO2Tv52clS0N+IhplqpKwq43p2yqSxANek=";
  };

  patches = [
@@ -228,6 +229,10 @@ stdenv.mkDerivation (finalAttrs: {
    runHook postInstallCheck
  '';

  passthru.updateScript = nix-update-script {
    extraArgs = [ "--url=https://github.com/kovidgoyal/calibre" ];
  };

  meta = {
    homepage = "https://calibre-ebook.com";
    description = "Comprehensive e-book software";