mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-19 03:14:03 +00:00
kiwix: 2.2.1 -> 2.3.1
changelog:
- 2.3.1
- Fix the AppImage packaging. Now published AppImages work correctly on recent distrubution (mgautierfr 905)
- Improve zim file picker (kelson42 886)
- Do not show ServiceWorker zim file from the remote catalog (kelson42 887)
- 2.3.0
- Fix downloading of file bigger than 4G (Juzz0 855)
- Hide top widget and topbar in fullscreen (Juzz0 859)
- Add shortcuts for navigating tabs (Ctrl-tab, Ctrl-shift-tab) (Juzz0 867)
- Do not use deprecated method QWebEngineDownloadItem::setPath (Juzz0 853)
- Fix compilation with last version of libkiwix (mgautierfr 858)
- Fix README.md (psypherium 860)
- Update translations.
- 2.2.2
- Remove usage of deprecated libkiwix function (Juzz0 mgautiefr 831)
- Adapt kiwix-desktop to last libkiwix api (mgautierfr 842, veloman-yunkan 844)
- Do not search (and crash) on a zim file without fulltext index (mgautierfr 830)
- Update translations.
- [Flathub] Update link to screenshot
libkiwix changelog:
<0ae31bd181/ChangeLog
>
libkiwix now requires libzim to be compiled with xapian support.
kiwix-desktop fails to link of xapian isn't also found there, so i made
this part of `propagatedBuildInputs`. `xz` also needed to be propagated,
otherwise libkiwix would fail with
```
> meson.build:38:0: ERROR: Could not generate cargs for libzim:
> Package liblzma was not found in the pkg-config search path.
```
additionally, upstream renamed the repo to `libkiwix`. the old `kiwix-lib` repo redirects to
`libkiwix`, so i updated pname to reflect this.
This commit is contained in:
parent
7634c3250b
commit
bea06ddf35
@ -11,13 +11,13 @@
|
|||||||
|
|
||||||
mkDerivation rec {
|
mkDerivation rec {
|
||||||
pname = "kiwix";
|
pname = "kiwix";
|
||||||
version = "2.2.1";
|
version = "2.3.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = pname;
|
owner = pname;
|
||||||
repo = "${pname}-desktop";
|
repo = "${pname}-desktop";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-ks2d/guMp5pb2tiwGxNp3htQVm65MsYvZ/6tNjGXNr8=";
|
sha256 = "sha256-ghx4pW6IkWPzZXk0TtMGeQZIzm9HEN3mR4XQFJ1xHDo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
, python3
|
, python3
|
||||||
, curl
|
, curl
|
||||||
, icu
|
, icu
|
||||||
|
, libzim
|
||||||
, pugixml
|
, pugixml
|
||||||
, zimlib
|
|
||||||
, zlib
|
, zlib
|
||||||
, libmicrohttpd
|
, libmicrohttpd
|
||||||
, mustache-hpp
|
, mustache-hpp
|
||||||
@ -12,14 +12,14 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "kiwix-lib";
|
pname = "libkiwix";
|
||||||
version = "10.1.1";
|
version = "12.0.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "kiwix";
|
owner = "kiwix";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-ECvdraN1J5XJQLeZDngxO5I7frwZ8+W8tFpbB7o8UeM=";
|
sha256 = "sha256-4FxLxJxVhqbeNqX4vorHkROUuRURvE6AXlteIZCEBtc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
@ -38,8 +38,8 @@ stdenv.mkDerivation rec {
|
|||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
curl
|
curl
|
||||||
libmicrohttpd
|
libmicrohttpd
|
||||||
|
libzim
|
||||||
pugixml
|
pugixml
|
||||||
zimlib
|
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
, meson
|
, meson
|
||||||
, ninja
|
, ninja
|
||||||
, pkg-config
|
, pkg-config
|
||||||
|
, python3
|
||||||
|
, xapian
|
||||||
, xz
|
, xz
|
||||||
, zstd
|
, zstd
|
||||||
}:
|
}:
|
||||||
@ -24,19 +26,27 @@ stdenv.mkDerivation rec {
|
|||||||
ninja
|
ninja
|
||||||
meson
|
meson
|
||||||
pkg-config
|
pkg-config
|
||||||
|
python3
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
icu
|
icu
|
||||||
xz
|
|
||||||
zstd
|
zstd
|
||||||
];
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
xapian
|
||||||
|
xz
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
patchShebangs scripts
|
||||||
|
'';
|
||||||
|
|
||||||
mesonFlags = [
|
mesonFlags = [
|
||||||
# Tests are located at https://github.com/openzim/zim-testing-suite
|
# Tests are located at https://github.com/openzim/zim-testing-suite
|
||||||
# "...some tests need up to 16GB of memory..."
|
# "...some tests need up to 16GB of memory..."
|
||||||
"-Dtest_data_dir=none"
|
"-Dtest_data_dir=none"
|
||||||
"-Dwith_xapian=false"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user