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