2021-01-15 10:19:50 +01:00
|
|
|
{ lib, stdenv
|
2017-03-07 13:49:30 +01:00
|
|
|
, fetchFromGitHub
|
2015-09-02 04:55:06 +02:00
|
|
|
|
2017-03-07 13:49:30 +01:00
|
|
|
, autoconf
|
|
|
|
, automake
|
|
|
|
, libtool
|
2021-01-17 10:17:16 +01:00
|
|
|
, pkg-config
|
2015-09-02 04:55:06 +02:00
|
|
|
|
2017-03-07 13:49:30 +01:00
|
|
|
, file
|
|
|
|
, icu
|
2018-07-17 22:11:16 +02:00
|
|
|
, gumbo
|
2017-03-07 13:49:30 +01:00
|
|
|
, lzma
|
|
|
|
, xapian
|
|
|
|
, zimlib
|
|
|
|
, zlib
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "zimwriterfs";
|
2017-03-07 13:49:30 +01:00
|
|
|
version = "1.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wikimedia";
|
|
|
|
repo = "openzim";
|
2019-08-15 14:41:18 +02:00
|
|
|
rev = "${pname}-${version}";
|
2017-03-07 13:49:30 +01:00
|
|
|
sha256 = "1vkrrq929a8s3m5rri1lg0l2vd0mc9n2fsb2z1g88k4n4j2l6f19";
|
2015-09-02 04:55:06 +02:00
|
|
|
};
|
|
|
|
|
2021-01-17 10:17:16 +01:00
|
|
|
nativeBuildInputs = [ automake autoconf libtool pkg-config ];
|
2018-07-17 22:11:16 +02:00
|
|
|
buildInputs = [ file icu gumbo lzma zimlib zlib xapian ];
|
2017-11-02 13:54:20 +01:00
|
|
|
setSourceRoot = ''
|
|
|
|
sourceRoot=$(echo */zimwriterfs)
|
|
|
|
'';
|
2017-01-06 14:04:49 +01:00
|
|
|
preConfigure = "./autogen.sh";
|
2015-09-02 04:55:06 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A console tool to create ZIM files";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://git.wikimedia.org/log/openzim";
|
2021-01-15 10:19:50 +01:00
|
|
|
maintainers = with lib.maintainers; [ robbinch ];
|
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
platforms = with lib.platforms; [ linux ];
|
2015-09-02 04:55:06 +02:00
|
|
|
};
|
|
|
|
}
|