3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #162089 from ivan-pop/calibre

calibre: 5.34.0 -> 5.37.0
This commit is contained in:
Anderson Torres 2022-02-27 15:21:24 -03:00 committed by GitHub
commit dbd8fd189c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,15 +23,16 @@
, xdg-utils
, removeReferencesTo
, libstemmer
, wrapGAppsHook
}:
mkDerivation rec {
pname = "calibre";
version = "5.34.0";
version = "5.37.0";
src = fetchurl {
url = "https://download.calibre-ebook.com/${version}/${pname}-${version}.tar.xz";
hash = "sha256-1NQB7vrcU0hR308/8keUn/rHhdvJk5Ab0pOMPyiU1+M=";
hash = "sha256-x2u4v0k05WMATSsuo76NnqChIz8BcTuZfPkZa0uLnMY=";
};
# https://sources.debian.org/patches/calibre/${version}+dfsg-1
@ -62,7 +63,7 @@ mkDerivation rec {
dontUseQmakeConfigure = true;
nativeBuildInputs = [ pkg-config qmake removeReferencesTo ];
nativeBuildInputs = [ pkg-config qmake removeReferencesTo wrapGAppsHook ];
buildInputs = [
chmlib
@ -154,7 +155,6 @@ mkDerivation rec {
# Wrap manually
dontWrapQtApps = true;
dontWrapGApps = true;
# Remove some references to shrink the closure size. This reference (as of
# 2018-11-06) was a single string like the following:
@ -166,7 +166,6 @@ mkDerivation rec {
for program in $out/bin/*; do
wrapProgram $program \
''${qtWrapperArgs[@]} \
''${gappsWrapperArgs[@]} \
--prefix PYTHONPATH : $PYTHONPATH \
--prefix PATH : ${poppler_utils.out}/bin
done