2021-01-15 10:19:50 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, automake, autoconf, libtool
|
2018-07-21 02:44:44 +02:00
|
|
|
, zimlib, cxxtools, tntnet
|
2015-09-20 06:57:50 +02:00
|
|
|
}:
|
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2016-08-18 11:04:15 +02:00
|
|
|
name = "zimreader-0.92";
|
2015-09-20 06:57:50 +02:00
|
|
|
|
2016-08-18 11:04:15 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wikimedia";
|
|
|
|
repo = "openzim";
|
|
|
|
rev = "r1.3"; # there multiple tools with different version in the repo
|
|
|
|
sha256 = "0x529137rxy6ld64xqa6xmn93121ripxvkf3sc7hv3wg6km182sw";
|
2015-09-20 06:57:50 +02:00
|
|
|
};
|
|
|
|
|
2019-10-27 14:03:25 +01:00
|
|
|
patchFlags = [ "-p2" ];
|
2016-08-18 11:04:15 +02:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "zimreader_tntnet221.patch";
|
|
|
|
url = "https://github.com/wikimedia/openzim/compare/r1.3...juliendehos:3ee5f11eaa811284d340451e6f466529c00f6ef2.patch";
|
|
|
|
sha256 = "0rc5n20svyyndqh7hsynjyblfraphgi0f6khw6f5jq89w9i1j1hd";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2015-09-20 06:57:50 +02:00
|
|
|
buildInputs = [ automake autoconf libtool zimlib cxxtools tntnet ];
|
2017-11-02 13:54:20 +01:00
|
|
|
setSourceRoot = ''
|
|
|
|
sourceRoot=$(echo */zimreader)
|
|
|
|
'';
|
2017-01-06 14:04:49 +01:00
|
|
|
preConfigure = "./autogen.sh";
|
2015-09-20 06:57:50 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A tool to serve ZIM files using HTTP";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://git.wikimedia.org/log/openzim";
|
2021-01-15 10:19:50 +01:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
maintainers = with lib.maintainers; [ robbinch juliendehos ];
|
2016-08-06 16:00:59 +02:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2015-09-20 06:57:50 +02:00
|
|
|
};
|
|
|
|
}
|